desislava_topuzakova

02. Password начин 1

Jul 31st, 2021
647
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. entered_password = input()
  9. while entered_password != password:
  10.     entered_password = input()
  11. else: # entered_password == password
  12.     print(f"Welcome {username}!")
  13.  
RAW Paste Data