Is there any way to take the user's input in one variable and use that input in another variable?
<p>Is there any way to take the user's input in one variable and use that input in another variable?</p>

<p>For example:</p>

<pre><code>def user_input():
    numb = input("Please input the number ")
    numb_process()

def numb_process():
    if numb == '1':
        print("Good")
    else:
        print("Bad")

user_input()
</code></pre>

<p>It should work. You can call the numb_process function by giving it an argument "numb" that will move from the function "user_input" to function "numb_process".</p>

<pre><code>def user_input():
    numb = input("Please input the number ")
    numb_process(numb)

def numb_process(numb):
    if numb == '1':
        print("Good")
    else:
        print("Bad")

user_input()
</code></pre>

python python-3.x