title: splitting multiple lines using str.split
body: <p>Trying to split a multiline paragraph using str.split single line split works correctly. Is str.split the correct way to split multiple lines what am I missing here?
  single line split working correctly example:</p>
  <pre><code>dmap_lines = &quot;&quot;&quot;Nople Normal Altar1-truck-Altar2,Altar2-train-Cansomme,Cansomme-flight-Karoh,Karoh-truck-Nople&quot;&quot;&quot;
  destinations = []
  remainders1 = []
  stages = []
  for line in dmap_lines:
      destination, remainder1, remainder = dmap_lines.split(' ')
      destinations.append(destination)
      remainders1.append(remainder1)
      remainder = remainder.split(',')
      stages.append(remainder)
  print(destination)
  print(remainder1)
  print(type(remainder))
  print(remainder)
  
  Expected Output: 
  Nople
  Normal
  &lt;class 'list'&gt;
  ['Altar1-truck-Altar2', 'Altar2-train-Cansomme', 'Cansomme-flight-Karoh', 'Karoh-truck-Nople']
  </code></pre>
  <p>with multiline code:</p>
  <pre><code>dmap_lines = &quot;&quot;&quot;Nople Normal Altar1-truck-Altar2,Altar2-train-Cansomme,Cansomme-flight-Karoh,Karoh-truck-Nople\nDria Normal Altar1-truck-Altar2,Altar2-train-Mala1,Mala1-truck-Mala2,Mala2-flight-Dria&quot;&quot;&quot;
  destinations = []
  remainders1 = []
  stages = []
  for line in dmap_lines:
      destination, remainder1, remainder = dmap_lines.split(' ')
      destinations.append(destination)
      remainders1.append(remainder1)
      remainder = remainder.split(',')
      stages.append(remainder)
  print(destination)
  print(remainder1)
  print(type(remainder))
  print(remainder)
  
  Receiving error in output: 
  ---------------------------------------------------------------------------
  ValueError                                Traceback (most recent call last)
  &lt;ipython-input-78-9eb9f8fa1c64&gt; in &lt;module&gt;
        4 stages = []
        5 for line in dmap_lines:
  ----&gt; 6     destination, remainder1, remainder = dmap_lines.split(' ')
        7     destinations.append(destination)
        8     remainders1.append(remainder1)
  
  ValueError: too many values to unpack (expected 3)
  </code></pre>
  <p>Expected output:</p>
  <pre><code>Nople
  Normal
  &lt;class 'list'&gt;
  ['Altar1-truck-Altar2', 'Altar2-train-Cansomme', 'Cansomme-flight-Karoh', 'Karoh-truck-Nople']
  
  Dria
  Normal
  &lt;class 'list'&gt;
  ['Altar1-truck-Altar2,Altar2-train-Mala1,Mala1-truck-Mala2,Mala2-flight-Dria']
  </code></pre>
  <p>Why is the for loop not iterating over multiple lines and splitting the string into the sections?</p>