1CorrectUsername = surname[0:3] + firstname[0:3]
2
3loop = 'true'
4while (loop == 'true'):
5 username = input("Please enter your username: ")
6 if (username == CorrectUsername):
7 password = input("Please enter your password: ")
8 if (password == CorrectPassword):
9 print("Logged in successfully as ") + username
10 loop = 'false'
11 else:
12 print "Password incorrect!"
13 else:
14 print "Username incorrect!"
1username = input(' enter your username: ')
2if username == 'Put Your Username Here':#change this
3 print("checking username")
4 time.sleep(0.5)
5 print("username is right")
6 password = input(' type your password: ')
7 if password == 'Put Your Password Here':#change this
8 time.sleep(0.5)
9 else:
10 exit()
11else:
12 exit()