I am running python 2.75 on Wing IDE
The code:
exit = False
while not exit:
    selection = int(raw_input("Press 1 to go and 0 to quit: ")
    if selection == 1:
       print("yay")
    elif selection == 0:
       print("Goodbye")
       exit = True
    else:
       print("Go away")
When I press 0, it says:
local variable 'exit' referenced before assignment
What is wrong?
 
     
    