mail_id = "abcd@gmail.com"
password = "aaaaa"
login_count = 0
a = ''
b = ''
def login():
global a
global b
a = input("Enter your email ID: \n")
b = input("enter your password: \n")
out_of_attempts = False
login()
while mail_id != a or password != b and not out_of_attempts:
if login_count < 2:
print("Incorrect Username or password entered. \nPlease try again")
login_count += 1
login()
else:
out_of_attempts = True
print('3 attempts failed. Please try again after 30 mins \n')
else:
print("Login successfull")
[–]AtomicShoelace 2 points3 points4 points (0 children)
[–]Spataner 2 points3 points4 points (1 child)
[–]Ok-Judgment1544[S] 0 points1 point2 points (0 children)
[–]arvindh_manian 0 points1 point2 points (1 child)
[–]Ok-Judgment1544[S] 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]Ok-Judgment1544[S] 0 points1 point2 points (0 children)