What`s wrong in code?


#1

print "What`s your first name?"
first_name = gets.chomp.capitalize

print "What`s your last name?"
last_name = gets.chomp.capitalize

print "What`s your city?"
city = gets.chomp.capitalize

print "What`s your state?"
state = gets.chomp.upcase

puts "You are #{first_name} #{last_name} from #{city}, #{state}"

Error:
Oops, try again. Make sure to call capitalize! on first_name, last_name, and city.


#2

Make sure to call capitalize! on first_name, last_name, and city

Take a look at your capitalize method and the method the instructions called for.
Hint: That isn't punctuation in the instructions( ! )


#3

Thank you, I was inattentive ...


#4

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