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>This is python 101 and the standard <a href="https://docs.python.org/3/tutorial/index.html" rel="nofollow">python tutorial</a> is a good place to learn basic concepts. In your case, simple parameter passing will do.</p>

<pre><code>def user_input():
    numb = input("Input number ") # bind result of the input function
                                  # to local variable "numb"

    numb_process(numb)            # pass the object bound to "numb"
                                  # to called function

def numb_process(some_number):    # bind inbound object to local variable
                                  # "some_number"

    if some_number == '1':        # use bound object in calculations
        print("Good")
    else:
        print("Bad")

user_input()
</code></pre>

python python-3.x