Advertisement
desislava_topuzakova

02. Password начин 1

Jul 31st, 2021
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. username = input()
  2. password = input()
  3.  
  4. # повтаряме: въвеждаме парола
  5. # стоп: въведаната парола == password
  6. # продължавам: въведената парола != password
  7.  
  8. entered_password = input()
  9. while entered_password != password:
  10.     entered_password = input()
  11. else: # entered_password == password
  12.     print(f"Welcome {username}!")
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement