Lesson 2 where is the error


#1

Here is my code
var= user_ input
user_input = gets.chomp
end


#2

no need to use the keyword end here

You should use print on line one to tell the user you want user input:

var="give me a string"

#3

No need for the "var = user_input"
and end keyword

user_input = gets.chomp
print user_input


#4

@sophiayingsy if you havent figured it out yet put
user_input = gets.chomp
print "user_input"


#5

@greghammer49

was looking for help on something else and noticed your answer. The last line should be 'print user_input' without the apostraphes. There shouldn't be quotation marks around user_input or it will just print a string that says user_input.