beginner's python help

Esmail ebonak at hotmail.com
Mon Sep 7 14:42:32 CEST 2009


Maggie wrote:
> code practice:
> 
> test = open ("test.txt", "r")
> readData = test.readlines()
> #set up a sum
> sum = 0;

Hi Maggie,

I see you have already gotten a lot of useful help.
One additional suggestion would be to use a different
variable name other than 'sum' as sum is a Python
built-in function.

Cheers,
Esmail




More information about the Python-list mailing list