title: ValueError: too many values to unpack (expected 2)
body: <p>In the Python tutorial book I'm using, I typed an example given for <strong>simultaneous assignment</strong>. I get the aforementioned ValueError when I run the program, and can't figure out why.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>#avg2.py
  #A simple program to average two exam scores
  #Illustrates use of multiple input
  
  def main():
      print("This program computes the average of two exam scores.")
  
      score1, score2 = input("Enter two scores separated by a comma: ")
      average = (int(score1) + int(score2)) / 2.0
  
      print("The average of the scores is:", average)
  
  main()
  </code></pre>
  
  <p>Here's the output.</p>
  
  <pre><code>&gt;&gt;&gt; import avg2
  This program computes the average of two exam scores.
  Enter two scores separated by a comma: 69, 87
  Traceback (most recent call last):
    File "&lt;pyshell#4&gt;", line 1, in &lt;module&gt;
      import avg2
    File "C:\Python34\avg2.py", line 13, in &lt;module&gt;
      main()
    File "C:\Python34\avg2.py", line 8, in main
      score1, score2 = input("Enter two scores separated by a comma: ")
  ValueError: too many values to unpack (expected 2)
  </code></pre>