title: Why is Python showing error : can't assign to operator?
body: <pre class="lang-py prettyprint-override"><code>from datetime import datetime
  now = datetime.now()
  q = int(now.strftime('%I'))
  w = int(now.strftime('%M'))
  
  def correct_time(delta):
      if w &lt; (120 - delta):
          Q = q + 1 and W = w + (delta - 60)
      else:
          Q = q + 2 and W = w + (delta - 120)
      return Q, W
  
  correct_time(45)
  
  #gives error - SyntaxError: can't assign to operator
  </code></pre>
  
  <p>In the above code I was trying to assign new values of q and w to Q and W respectively. I get no error when I only try to assign new value to either Q or W (not to both in the same line) but when I use 'and'(as in the above case) or ',' I get such an error.</p>
  
  <p>I searched the internet for 'can't assign to operator' error but found that they were not relevant to my case. I would like to know why the above code shows error when it follows the rules of assignment.</p>