title: Understanding multiple variable assignment on one line in Python
body: <p>I'm not sure how to ask this question properly cause I'm trying to understand something I don't understand yet and therefore I don't know the right terminology to use, but I came across this code snippet in a YouTube tutorial regarding PIL <a href="https://www.youtube.com/watch?v=8b0qR8wQDzE" rel="nofollow">here</a>. </p>
  
  <p><strong>Question</strong> </p>
  
  <p>Could somebody please explain what the last line means? I'm guessing it is a Python style of declaring variables I am not familiar with yet and I dont know what it is called so I can't look it up.     </p>
  
  <pre><code>import Image
  
  filename = "py.png"
  image = Image.open(filename)
  size = width, height = image.size
  </code></pre>
  
  <p><strong>What I've Tried</strong></p>
  
  <p>I've tried to break down the logic of the last line but it doesn't make sense to me:</p>
  
  <pre><code># assign value of width to size variable?     
  size = width 
  # assign value of image.size to height variable?
  height = image.size 
  </code></pre>
  
  <p>The problems I see with this are:</p>
  
  <ul>
  <li><p><code>width</code> is not defined.  </p></li>
  <li><p><code>image.size</code> represents the images dimensions ie <code>(512,512)</code> so that doesn't seem like it would be an appropriate value for <code>height</code>.  </p></li>
  </ul>
  
  <p>I'm sure this is very simple, I just don't get it yet. </p>