Episode 9a - Things That Can Go Wrong With Conditionals


  1. Debug: Run the following code and you'll get an error and a warning. Then fix the code.
    puts "Welcome to The Matrix. Do you want to take the red pill or the blue pill?"
    pill = gets.chomp
    if pill = "red"
      puts "You took the red pill."
    if pill = "blue"
      puts "You took the blue pill."