[Tutor] Adding Lists?

Emile van Sebille emile at fenx.com
Sat Aug 23 20:02:26 CEST 2008


Tom Wakelam wrote:

> yet if i wrote range (1, 500, 2) [1, 3, 5, 7....... ..499] is there a 
> command where i could total that list quickly?
> 

You're looking for sum --
  sum(range (1, 500, 2) )



More information about the Tutor mailing list