desislava_topuzakova

02. Password начин 2

Jul 31st, 2021
720
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data