Advertisement
Guest User

new

a guest
Dec 18th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. count=0
  2. username="user"
  3. userpassword="12580"
  4. while True:
  5.     if count<3:
  6.         name=input("please input user name:")
  7.         password=input("please input user password:")
  8.         if name==username and password==userpassword:
  9.             print("success to ")
  10.             break
  11.         else:
  12.             print("worse")
  13.             count+=1
  14.     else:
  15.     print("try again")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement