0

Hi can anyone helpe out writing a code for login page tedt case in python

the test case is to check for valid login and give valid message and for invalid login invalid message

25th Jan 2017, 5:59 AM
sowmya ingin
2 Answers
+ 3
valid_logins = ['login1', 'login2', 'login3'] login = input('Please enter your login: ') if login in valid_logins: print('Welcome', login) else: print ('Get out of here, you hacker-wannabe!')
6th Feb 2017, 6:20 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
28th Aug 2020, 3:14 PM
Manan Velani
Manan Velani - avatar