2. Getting the User's Input


#1



https://www.codecademy.com/courses/ruby-beginner-en-mzrZ6/0/2?curriculum_id=5059f8619189a5000201fbcb


I seriously have hatred for this thing...
Oops, try again.
It looks like you didn't print two prompts for the user to the console using 'puts'.

puts
text = gets.chomp
puts
redact = gets.chomp


So what was my mistake...?


#2

Oh, how silly of me. I just realized what I was supposed to do.


#3

puts is a print out statement.

try something more similar to this:

input = gets.chomp
puts input

#4

puts "text "
text = gets.chomp
puts "redact "
redact = gets.chomp
That's what I was supposedly supposed to do.


#5

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