Error non compatible with the exercise


print "What's your first name?"
first_name = gets.chomp
first_name = first_name.capitalize
print "What's your last name?"
last_name = gets.chomp
last_name = last_name.capitalize

print "What's your city"
city = gets.chomp
city = city.capitalize

print "What's your state"
state = gets.chomp

print "Your name is #{first_name} your last name is #{last_name} and your city is #{city}"

This is the error: Oops, try again. Make sure to call capitalize! on first_name, last_name, and city.


You haven't called capitalize! on any of those. Give that another try.