...

/

Printing Things

Printing Things

Discover some other ways to print something in Ruby!

Many of the exercises that you do while doing your first steps with Ruby basics include running a short Ruby program that outputs something to the terminal.

So far, we have mostly used the method puts to do that.

What can be used instead of puts?

However, there’s another method that is even more useful when we are trying to figure out what a program is doing, why it is doing it, and what a certain the error might be about.

This method is the method p. In order to understand p better, we want to look at another method first, which is the method ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy