Quick question.....
David M. Cooke
cookedm+news at physics.mcmaster.ca
Thu Jan 15 20:15:11 EST 2004
At some point, featherstone80 at hotmail.com (Narsil) wrote:
> I tried that. I get the following error message
>
> Traceback (most recent call last):
> File "E:\python\fun4b.py", line 80, in ?
> menu()
> File "E:\University\python\assign4b.py", line 49, in menu
> print sum(weektotlist)
> NameError: global name 'sum' is not defined
>
> What did I do wrong?
'sum' as a builtin was introduced in python 2.3. You're using an older
version.
--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca
More information about the Python-list
mailing list