title: House robber - Python Syntax
body: <p>My question is why the following syntax produces the correct answer for house robber: </p>
  
  <pre><code>last, now = 0, 0
  for element in nums:
      last, now = now, max(last + element, now)
  return now
  </code></pre>
  
  <p>vs the same thing, but not inline:</p>
  
  <pre><code>last, now = 0, 0
  for element in nums:
      last = now
      now = max(last + element, now)
  return now
  </code></pre>
  
  <p>I expect they should be the same. I traced this out though (in the second snippet) and it is giving me the wrong answer. For example: in an array [3, 5, 3] my given answer for the second code snippet will be 11 - it will just keep adding things.</p>
  
  <p>I'm obviously missing something about the inline capabilities of python. Is there anyone that could provide some insight? Thank You.</p>