title: I need help fixing an "Unexpected EOF error while parsing", please
body: <p>I'm a first year computer science major with little clue about what I am doing, and I really need some help. I'm writing a program for an assignment that will run a simulation where the user picks 1 out of three stocks, and the program will calculate gains/losses, for 10 years.</p>
  
  <p>Right now, i'm trying to implement the random section of the gains and losses and I keep running into unexpected eof while parsing error.</p>
  
  <p>The error disappears when I delete the last 2 lines of the code.</p>
  
  <p>I have searched for previous solutions to this on the website, but as I said, I'm very new to programming, and I'm not fluent enough in Python to understand the solutions posted to those questions.</p>
  
  <pre><code>import random
  
  
  def main():
      starting_menu()
      choice_loop()
  
  #Displays the starting menu 
  def starting_menu():
      spendingCash=float(100.00)
      print("Current funds:", format(spendingCash, "0.2f"))
      print("Available investments")
      print("(1)Fly-By-Night investments (SCAMU): high risk, high potential returns")
      print("(2)Blue Chips INC (BCI): moderate risk, good yearly returns")
      print("(3)Slow and Steady Corp (BORE): mature industry, no risk but low returns")
      print("\nPlease enter a value from 1-3 only")
      print()
  
  #Loop for if user selects a stock numbered other than 1-3
  def choice_loop():
      chosen_stock=int(input("Stock Selection: "))
  
      while chosen_stock&gt;3 or chosen_stock&lt;1:
          print("Invalid choice, please enter number from 1-3 only")
          chosen_stock=int(input("Stock Selection: "))
  
      invest_chance=random.randrange(1,101)
      if chosen_stock==1:
          if invest_chance&gt;=1 and invest_chance&lt;=45:
  </code></pre>
  
  <p>I appreciate the help.</p>