Archived Talk:Python on Symbian/02. Basic Python Elements
Echodoomyou - error
in the section of function, with the expample code:
def listaverage(aList):
thesum = 0
for x in aList:
thesum += x
print "Average is ",thesum/len(aList)
listaverage([1,2,3,4,5])
the return result should be:
Average is 3
instead of what has been written above:
Average is 2echodoomyou 04:36, 23 October 2012 (EEST)
Croozeus - Rectified
Hi Echodoomyou,
Well spotted. I've now rectified this.
Thanks!
--Pankaj.croozeus 06:33, 24 October 2012 (EEST)

