I have created a variable inside the Start() procedure but it doesn't seem remember the variable outside of the procedure. Is there a way of getting python to remember the variable outside of the Start() procedure? My code is as follows:
def Start():
password = raw_input("Enter A Password With 7 Or More Characters: ")
passwordLength = len(password)
if passwordLength<7:
print "Your entered a password with less than 7 characters. Enter a longer password."
Start()
else:
reEnter = raw_input("Re-enter your password: ")
if reEnter<>password:
print "Your passwords did not match, please try again."
Start()
if reEnter==password:
print "Your password has been saved."
Start()
print password
print passwordLength