ValueError: need more than 1 value to unpack python
<p>I have got an existing menu that gives you options <code>L</code> or <code>D</code>. <code>L</code> should load the contents of a file and <code>D</code> should display it.</p>

<pre><code>if option == "l" or option == "L":
    with open("packages.txt") as infp:
        for line in infp:
         line = line.rstrip()
         name,adult,child= line.split(',')

if option == "d" or option == "D":
    print ((name)," - ",(adult)," / ",(child))
</code></pre>

<p>However, when I try to run this I get the error:</p>

<blockquote>
  <p>name,adult,child= line.split(',')<br>
  ValueError: need more than 1 value to unpack</p>
</blockquote>

<p>Why do I get this error?</p>
