mardi 23 novembre 2021

Im new to programming and im trying to run this code on python but ive done something wrong can someone fix my code i cant seem to get it right

count=0
while count < 3:
Username = input('Username: ')
Password = input('Password: ')
numAttempts = 3
     if Password=='123' and Username=='admin':
         print('Successfully logged in')
     elif:
         print('Invalid username and password!')
         count += 1
     else numAttempts > 3:
         print("Account has been blocked")

File "", line 8 if Password=='123' and Username=='admin': ^ IndentationError: unexpected indent

Aucun commentaire:

Enregistrer un commentaire