title: Begin rescue retry error
body: <p>If this code executes the <code>else</code> statement, I want it to retry either from <code>rescue</code> or from <code>begin</code>.
  Running the code asks me for an input and, when I input it, the code doesn't work.</p>
  
  <p>1- What can I do to make this code work with the else statement running the <code>retry</code>?</p>
  
  <p>2- Why does removing <code>rescue</code> create a <code>retry Syntax Error</code>?</p>
  
  <pre><code># Creates input method
  def input
    x = gets.to_i
  end
  
  #Begins the first choice
  begin
  
    puts "What will you do?
    1- Get a closer look
    2- Go in the opposite direction
    Write your input an press enter:"
  rescue
    #Calls input method
    choice = input
    if choice == 1
      puts "You get a closer look and..."
    elsif choice == 2
      puts "You go in the opposite direction, out of trouble"
    else 
      puts "Incorrect input, enter a number between the one's avaliables:"
    end
  
    #Retries if the choice is error
  retry if choice != 1||2
  end
  </code></pre>