Codeacademy - Ruby - Putting the Form In The Formatter - Printing The Output


How to solve this error message ?

first_name = gets.chomp("What is your first name?")
last_name = gets.chomp("What is your last name?")
city = gets.chomp("What city are you from?")
state = gets.chomp("What state are you from?")
print "What is your first name?"
first_name = gets.chomp

What is your first name? Gengyang

Oops, try again. Make sure to use #{} for string interpolation! --- Error Message


You won't need to repeat this code. By this point in the program we have four return values, and now we just need to interpolate them into a string expression:

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

Check the instructions for expected output. This is just an example.


ok it works now ... nice nice nice