Running Sum script
David Smith
dns4 at cornell.edu
Fri Sep 4 13:24:14 EDT 2009
Jul wrote:
> hello,
>
> I have a .txt file that is in this format --
>
> 12625
> 17000
> 12000
> 14500
> 17000
> 12000
> 17000
> 14500
> 14500
> 12000
> ...and so on...
>
> i need to create a python script that will open this file and have a
> running sum until the end of file.
>
> it sounds really simple its just for some reason i am having problem
> with it.
>
> i would really appreciate your help
It is really simple. Can you post the code you've written so far?
--David
More information about the Python-list
mailing list