Error Impossible to Fix! HELP!


#1

I am beginning Ruby and I got,

uninitialized constant Context::True

What does this mean? I can find no errors in my code. HELP!!!!!!!

My code looks like this,

def by_three?(number)
     if number % 3 == 0
          return True
     else
          return False
     end
end

by_three?(3)

#2

@realname137
Don't capitalize True and False.

Also, there is no need for the if/else statement. I believe it was intended to be a return statement, as the ? on by_three? is the true/false if/else.

Lastly, don't paste code with straight brackets, as it makes it a pain for people to debug.

Cheers


#3

@cmditch is correct. Additionally, @realname137 here's a tutorial for you on how to post code - http://discuss.codecademy.com/t/using-backticks-to-format-your-code/3697 - I have formatted your post as well. Thanks! :slightly_smiling: