python how to print a previous input
<pre><code>def MainMenu ():
    print("Enter 1 to set values")
    print("enter 2 to display values")
    MainMenuInput = int(input("Enter:  "))
    if MainMenuInput == "1":
        setgen()
        MainMenu ()
    elif MainMenuInput == "2":
        print (fjuv)

def setgen ():
    fjuv = int(input("Amount of juveniles between 0 and 25?"))
    MainMenu ()

MainMenu ()
setgen ()
</code></pre>

<p>How to do make it so on <code>MainMenuInput == 2</code> it prints the values from <code>MainMenuInput == 1</code> which is the code in def <code>setgen?</code></p>