Advertisement
desislava_topuzakova

02. Password начин 2

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