Strange error in Redacted 5/6


#1

https://www.codecademy.com/courses/learn-ruby/lessons/redacted/exercises/control-flow-know-how?action=lesson_resume&link_content_target=interstitial_lesson

I don’t understand why i’m given this error.
Thanks in advance for your help :slight_smile:

Error:
SCT Error

Code:

puts "string"
string=gets.chomp
puts "word"
parola=gets.chomp
words=string.split(" ")
words.each do |item|
  if item==parola 
    print "REDACTED "
  else
    print item+" "
  end
end

Console:

string
hello hi wow
word
hi
hello REDACTED wow 

#2

Maybe have a look at
Missing Something


#3

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