I will take care thanks
I want to run the entire program n times if it is a sameuser else need to exit
Collapse
X
-
-
i have trouble how to loop back to the top from the first incase it has same user else need to exit
Works fine until while sameuser == 'Yes'
But not sure how to get back to the top of the program if it is a YES
Please help -
A while loop solves the problemCode:def print_user(user): """ put code you want to execute here """ print user orig_user = raw_input("Enter user name ") user = orig_user while user == orig_user: print_user(user) user = raw_input("Enter user name ")Comment
Comment