Thanks Skaperen..It worked..
#final code def sum2(data): a=0 for i in data: a=a+i return a
simulating sum function on LIST
|
|
Messages In This Thread |
simulating sum function on LIST - by vvv - Feb-25-2017, 06:41 AM
RE: simulating sum function on LIST - by Skaperen - Feb-25-2017, 06:53 AM
RE: simulating sum function on LIST - by vvv - Feb-25-2017, 06:57 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
I created a function that generate a list but the list is empty in a new .py file | mrhopeedu | 2 | 2,368 |
Oct-12-2019, 08:02 PM Last Post: mrhopeedu |
|
Simulating events using Hawkes | akshit2291 | 1 | 2,181 |
Sep-25-2018, 04:17 AM Last Post: Larz60+ |