Ruby 16 Comments Code Problems


I am Stuck at exercise 16. There are two Problems. First: the console often writes "nil" and i don't know why.
Second: What is wrong with my code. The Exercise does not accept it but i don't see what is wrong.

Oops, try again.
It looks like you didn't include =begin. Make sure there's no space between the equals sign and the word begin!

# Kommentar


You code writes nil because you didn't return anything. nil is like saying 0 or none. In fact Python returns None if you didn't return an output. As far as your code goes, I don't see any issue with the comments. Try refreshing the page?


tried to refresh it a fiew times. still the error message and i can't go on.


I'm not sure why it's not working. Maybe a weird character that isn't visible. I pasted your code and it doesn't work. Here is mine that works fine. It's the same, but maybe copy/paste it?

#Single line


i do that. thx. Just want to go further


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