Learn

First, we should print a statement to prompt the user for input, then set that input to a variable using gets.chomp.

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.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?