On 06/05/15 15:01, Dave Angel wrote:
def adding_all(x):
total = 0
for num in x:
total +=num
return total
Good function.
Except for the fact that the built-in sum() function
does the same thing with a lot less typing...
--
Alan G
Author of the Learn to Program web si
Thanks, Steven. I think you are right about those mistake. But you could
tell that the code was incomplete so the interact() was not defined. I have
updated some parts (basically writing from the scratch). I am busy with a
new project and learning how to create GUI app in python, although there
are
On 05/06/2015 07:51 AM, Alan Gauld wrote:
Please use ReplyAll to include the list members.
Forwarded Message
Subject: Re: [Tutor] Adding consecutive numbers
Date: Wed, 6 May 2015 21:13:15 +1000
From: Whom Isac
To: Alan Gauld
Thanks for the reply. I am sorr
Forwarded Message
Subject: Re: [Tutor] Adding consecutive numbers
Date: Wed, 6 May 2015 21:13:15 +1000
From: Whom Isac
To: Alan Gauld
I am actually using the latest version of python (3.5) in windows 7 operating
system.
Why are you using a version of Python
Please use ReplyAll to include the list members.
Forwarded Message
Subject:Re: [Tutor] Adding consecutive numbers
Date: Wed, 6 May 2015 21:13:15 +1000
From: Whom Isac
To: Alan Gauld
Thanks for the reply. I am sorry that I did not notice the mail. I am
actu