Answer is correct but it says a error


#1



Exercise Introduction by ruby. Lesson Putting the form into formatters


It says congratulations ,but it shows an error. Does anyone know what's wrong with this than?


Replace this line with your code.


#2

on line 3, why do you do use answer.capitalize!? The prompt you just used stores the result in first_name, so it should be:

first_name.capitalize!

same for all the other lines. Answer is a undefined variable