title: Basic python, def function and recall for a text-menu
body: <p>I've just started playing around with python and was looking for advice.</p>
  
  <p>The problem is with the MENU(), for some reason on the 7th line I get a syntax error</p>
  
  <pre><code>    $ MENU()
  </code></pre>
  
  <p>Not sure what I'm doing wrong.</p>
  
  <pre><code>def MENU():
      print("Menu:")
      print("     0. Menu")
      print("     1. Random Number Generator")
      access = int(input("Make a selection from the above list: ")
  
  MENU()   ## Problem area
  
  if access == 1:
      ## Random Number Generator
      import random
      ## Imports random functions
      count = 0
      b = 0
      ## Creates the loop function, printing out the dataset
      while count &lt; 100:
          count += 1
          a = random.randrange(1,101)
          print(count,". ", a, end=" | " )
          b += a
      ## Shows the average values for the program, output
      else:
          print()
          print("Finish!")
          print(b)
          print(b/100)
          menu()
  else:
      MENU()
  </code></pre>
  
  <p>Context: I'm using this system just to improve my language as well as prevent myself creating 100's of 10 line files.</p>