Python break script but keep console open -
here basic code:
if pwd1 == pwd2: print ("correct password") break
how create if pwd1 , pwd2 equal console window remain open right password message script execution stop.
all of above in loop , if not stopped user asked reinput pwd2.
thanks!
while true: # ... if pwd1 == pwd2: break else: # not found sys.exit("not found") print("found right password:", pwd1) input("press come in exit") # maintain console open
python
No comments:
Post a Comment