SV: SV: [Tutor] Why use tuples?

Ignacio Vazquez-Abrams ignacio@openservices.net
Thu, 20 Sep 2001 18:11:47 -0400 (EDT)


On Thu, 20 Sep 2001, Danny Yoo wrote:

> ###
> >>> train_station = range(11)
> >>> train_station
> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> >>> train_station[9.75]
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: sequence index must be integer
> ###
>
> It's very difficult to get to train_station Nine and Three Quarters
> without magic...

Time to call Mr. Conductor!

(Sorry, I _had_ to say that ;) )

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>