title: Python username and password with 3 attempts
body: <p>Just started python and racking my brains on this but can't seem to get it right.    </p>
  
  <pre><code>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&lt;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
  </code></pre>
  
  <p>syntax error, can't assign to operator on line 6 username=input.</p>