Screen freezes and gets stuck


#1

https://www.codecademy.com/courses/learn-ruby/lessons/thith-meanth-war/exercises/returning-the-final-stringer-thtring?action=lesson_resume&link_content_target=interstitial_lesson

Returning the Final String—Er, “Thtring”

no error … but screen just freezes and nothing happens



print "input please: "
user_input = gets.chomp
user_input.downcase!
if user_input.include? "s"
  user_input.gsub!(/s/, "th")
else  
  puts "string not includes s"
end

puts "your string is #{user_input}"



Always get stock on ruby lessons
#2

chomp prompts you for input, you have to type something into the prompt

Did you do this? Please show screenshot


#3

i am not able to type anything… please have a look what happens to run button after i press it


#5

and after 5 min i get this output own its own


#6

quickly type some input and press enter to submit your word


#7

that is the problem… system hangs up and i am not able to type in


#8

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