title: Split: ValueError: need more than 1 value to unpack python
body: <p>I have the following part of code. When i give the value 'q' as input to x, I would like to stop the execution of the program.</p>
  
  <pre><code>di={}
  while True:
   x,y=raw_input('Key, Value: ').split(',')
   a=int(x)
   di[a]=y
   if (x=='q'):
    break
   else
    continue
  </code></pre>
  
  <p>I get an error message that the input command cannot unpack because i gave only one argument. Any help?</p>
  
  <pre><code>Key, Value: 454,fds
  Key, Value: 239,ada
  Key, Value: q
  Traceback (most recent call last);
  File "tmp.py", line 3, in &lt;module&gt;
  x,y=raw_input('Key,Value: ').split(',')
  ValueError: need more than 1 value to unpack
  </code></pre>
  
  <p>I cannot write 'q' in both x and y. </p>