Learn

First things first: we’ll need to get the user’s input.

Instructions

1.

Use puts to prompt the user for input two times. For the first puts, declare a variable called text and set it equal to the user’s input via gets.chomp.

For the second puts, declare a variable called redact 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?