[Tutor] working with time spans ?

Glen Wheeler gew75 at hotmail.com
Fri Jun 4 20:46:48 EDT 2004


> [..]
> 
> That's really great. 
> Er ... what on earth does the "*" in *startimetuple mean ?
> 

  Well, it's for unpacking arguments.  For example:

>>> t = (1,20,3)
>>> for i in range(*t):
..  print i
..  
1
4
7
10
13
16
19

  HTH,
  Glen



More information about the Tutor mailing list