Confused, please help


#1

I was doing every thing normaly I think, but it came up with an error message that said that I had an syntax error heres the code could someone tell me what I did wrong? thanks :slight_smile:

print"What's your first name?"
first_name=gets.chomp
print"what's your last name?"
last_name=gets.chomp
print"what city are you from?"
city=gets.chomp
print"what state/province are you from?"
state=gets.chomp
PRINT "You are #{first_name} #{last_name} from #{city},#{state}


#2

fixed it but after I did everything, it gave me this error:
undefined method `PRINT' for #


#3

Ruby is case sensitive when it comes to method names, so PRINT has to be lowercase.


#4

oh thanks!
:slight_smile:


#5

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