Re: My very first python program, need help

2008-08-10 Thread WP
Wojtek Walczak wrote: [snip] Thanks for all your help. I've incorporated your suggestions and moved on to my next program. See new thread. :) - Eric (WP) -- http://mail.python.org/mailman/listinfo/python-list

Re: My very first python program, need help

2008-08-10 Thread Wojtek Walczak
Dnia Sun, 10 Aug 2008 15:52:37 +0200, WP napisa�(a): Hi, > import re > > def calculate_sum_1(str): ^^^ this word is reserved, better use some other name > for c in str: > if c.isdigit() == False and c != ' ': > # That we assign to t

My very first python program, need help

2008-08-10 Thread WP
Hello, below is my very first python program. I have some questions regarding it and would like comments in general. I won't be able to get my hands on a good python book until tomorrow at the earliest. The program takes a string and sums all numbers inside it. I'm testing with the following st