title: Is it possible to assign a default value when unpacking?
body: <p>I have the following:</p>
  
  <pre><code>&gt;&gt;&gt; myString = "has spaces"
  &gt;&gt;&gt; first, second = myString.split()
  &gt;&gt;&gt; myString = "doesNotHaveSpaces"
  &gt;&gt;&gt; first, second = myString.split()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ValueError: need more than 1 value to unpack
  </code></pre>
  
  <p>I would like to have <code>second</code> default to <code>None</code> if the string does not have any white space. I currently have the following, but am wondering if it can be done in one line:</p>
  
  <pre><code>splitted = myString.split(maxsplit=1)
  first = splitted[0]
  second = splitted[1:] or None
  </code></pre>