Skip to main content
"Thanks" is unnecessary.
Link
Roland Weisleder
  • 10.6k
  • 9
  • 41
  • 63

Just started python and racking my brains on this but can't seem to get it right.

print('Enter correct username and password combo to continue') count=0 password=Hytu76E username=bank_admin while password!='Hytu76E' and username!='bank_admin' and count<4: username=input('Enter username: ') and password=input('Enter password: ') if password=='Hytu76E' and username=='bank_admin': print('Access granted') else: print('Access denied. Try again.') count-=1 

syntax error, can't assign to operator on line 6 username=input... Thanks.

Just started python and racking my brains on this but can't seem to get it right.

print('Enter correct username and password combo to continue') count=0 password=Hytu76E username=bank_admin while password!='Hytu76E' and username!='bank_admin' and count<4: username=input('Enter username: ') and password=input('Enter password: ') if password=='Hytu76E' and username=='bank_admin': print('Access granted') else: print('Access denied. Try again.') count-=1 

syntax error, can't assign to operator on line 6 username=input... Thanks.

Just started python and racking my brains on this but can't seem to get it right.

print('Enter correct username and password combo to continue') count=0 password=Hytu76E username=bank_admin while password!='Hytu76E' and username!='bank_admin' and count<4: username=input('Enter username: ') and password=input('Enter password: ') if password=='Hytu76E' and username=='bank_admin': print('Access granted') else: print('Access denied. Try again.') count-=1 

syntax error, can't assign to operator on line 6 username=input.

edited tags
Link
Aran-Fey
  • 44k
  • 13
  • 113
  • 161
Source Link
user8874475
user8874475
Loading