Advertisement
TahuW12

login.py

Jun 12th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. user = input("Enter your username: ")
  2. print("Welcome, " + user)
  3.  
  4. passwd = input("Enter your password: ")
  5.  
  6. while(passwd != 'password1'):
  7.     passwd= input("Password incorrect, Please enter the password for " + user + ": ")
  8.  
  9.  
  10. if(passwd == 'password1'):
  11.     print("Sucessful login!")
  12.     print("Welcome, " + user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement