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


#1

How to solve this error message ?

Input
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

Output
Gengyang
Cai
Singapore
Singapore
What is your first name? Gengyang
"Gengyang"

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


#2

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.


#3

ok it works now ... nice nice nice