title: python menu list
body: <p><code>odd()</code> prints the odd numbers from 1 to 99 inclusive (10 numbers on a line)</p>
  
  <p><code>threes()</code> prints multiples of 3 from 303 down to 3 (6 numbers on a line)</p>
  
  <p><code>listave(list)</code> returns the average of list</p>
  
  <p><code>revstr(str)</code> returns <code>str</code> in reverse order </p>
  
  <p>This is the problem I am working on and I am not sure where I am going wrong with this. I am using the code that I have made from last year and wanted to edit this code to use this string above.</p>
  
  <pre><code>    def print_menu():  ## Your menu design here
              print
              30 * "-", "MENU", 30 * "-"
              print
              "1. Menu Option 1"
              print("\n".join(str(i) for i in range(1, 100, 2)))
              "2. Menu Option 2"
              print
              "3. Menu Option 3"
              print
              "4. Menu Option 4"
              print
              "5. Exit"
              print
              67 * "-"
  
  
      loop = True
  
      while loop:  ## While loop which will keep going until loop = False
          print_menu()  ## Displays menu
          choice = input("Enter your choice [1-5]: ")
  
          if choice == 1:
              print
              "Menu 1 has been selected"
             ## print("\n".join(str(i) for i in range(1, 100, 2)))
          elif choice == 2:
              print
              "Menu 2 has been selected"
              ## You can add your code or functions here
          elif choice == 3:
              print
              "Menu 3 has been selected"
              ## You can add your code or functions here
          elif choice == 4:
              print
              "Menu 4 has been selected"
              ## You can add your code or functions here
          elif choice == 5:
              print
              "Menu 5 has been selected"
              ## You can add your code or functions here
              loop = False  # This will make the while loop to end as not value of loop is set to False
      else:
           # Any integer inputs other than values 1-5 we print an error message
          exit()
  </code></pre>