After using puts and print statement I get nil in my display which I don't even type



Replace this line with your code.


This extra output is very usual at ruby programs in Codecademy, you don't have to care about it for now.


Hi @jishandesai,

It's default Ruby behavior for puts and print to return nil at the end. Alex J has written about it here:

nil is the Ruby object that represents nothingness. Whenever a method doesn’t return a useful value, it returns nil. puts and print are methods that return nil:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.