Advertisement
desislava_topuzakova

02. Password

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