title: Passing variables between functions in Python, then back to menu
body: <p>Slowly progressing with my learning with Python and would love a little hand with some code I've tried to create.</p>
  <p>I previously had this program running with Global Variables to get a proof of concept to learn about passing variables between functions. Fully worked fine. However, rather than running the function and returning to the menu, it will just stop where I return the value and not progress back to the main menu I created. It is at the point of &quot;return AirportDetailsGlobal&quot;.</p>
  <p>I'm sure its a simple one, and as said - still learning!
  Really appreciate any help on this!</p>
  <p>Full code is on pastebin for further reference - pastebin 89VqfwFV</p>
  <pre><code>      print(&quot;\nEnter airport code for overseas&quot;)
        osCode = input()
        airports = airData
        for line in airports:
            if osCode in line:
                print (osCode, &quot;Found\n\n&quot;)
                print(&quot;Airport Name:&quot;,line[1])
                OverseaCodeGlobal = osCode
                x = int(line[2])
                AirDataGlobal = x #changed here
                return AirportDetailsGlobal
                break
                
                
                
        else:
            print('Incorrect Choice')
            menu()
  
        
        menu()
  </code></pre>