Issue with not accepting gets.chomp code


#1

I am having some issues with these exercises and cannot see my error. Here are the instructions:
1.
Use print to ask the user for input.

Declare a variable called user_input and set it equal to the user’s input using gets.chomp.

CA is not accepting my answer and I don’t see how it’s wrong.



print "What is your input?"
user_input = gets.chomp



#2

When the code runs be sure to type in something and Enter it. Do not enter an empty string.


#3

A post was split to a new topic: Why does it take for ever to load the code


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.