and that when you type return variable it will set the value of that variable to a global variable and that it will then exit the function
but say i wanted to define variable x as a global variable and then do something else in the function
how would i do that?
to be a bit more specific i have this function:
def sign_in(number,account,password):
- if number.has_key(account) and number[account]==password:
- account = account+".txt"
- load_numbers(numbers,account)
- display_menu()
- return account
- else:
- print "Either the account name or password was wrong,\nplease remember that the account names are CASE SESITIVE"
- welcome()
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor