I am new to python and cant figure out what I am doing wrong with the global variables. Here is an example of the problem I am having.
number = 0
def test():
global number
number = raw_input("Please type a number.")
def prints():
global number
if number2 != 1:
print "Yes"
else:
print "NO!"
test()
prints()
In this example it prints YES no matter what number I enter. Any suggestions?