Greg Hills
unread,Nov 14, 2009, 7:07:38 PM11/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to learnpython
Hi All,
I've been working on the chapter 4 exercises and I feel as though the
"results.txt" file I created may be improperly formatted. When I run a
program, which in some instances is copied directly from the text
book, I get the following error message:
Traceback (most recent call last):
File "/Users/ghills/Documents/Personal Stuff/Python Class/Chapter 4
Exercises/exercise p. 123_v2", line 5, in <module>
(name, score) = line.split()
ValueError: need more than 1 value to unpack
Here's how I've set up my results.txt file:
Johnny 8.65
Juan 9.12
Joseph 8.45
Stacey 7.81
Aideen 8.05
Zack 7.21
Aaron 8.31
Would someone be kind enough to post a "results.txt" file that worked
for them, or e-mail it to me directly?