Advertisement
tobycm

Untitled

Jan 16th, 2021
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1.  
  2. times = 0
  3. passcode = 0
  4.  
  5. while times < 3:
  6.     passcode = input("Nhap mat khau:")
  7.     if passcode == "2021" or passcode == "0042":
  8.         print("Chao mung den voi Sieu May Tinh")
  9.         exit()
  10.     else:
  11.         print("Mat khau sai")
  12.         times = times + 1
  13. print("Da nhap sai mat khau qua 3 lan!")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement