Tuples

Emile van Sebille emile at fenx.com
Fri Feb 11 08:50:01 EST 2000


>>> T=range(64)
>>> T[6],T[22] = T[22],T[6]

Use list and tuple to convert as appropriate.

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message ----- 
From: Rob W. W. Hooft <rob at hooft.net>
<snip>
> >>> T=tuple(range(64))
> >>> T=T[:6]+T[21:22]+T[7:21]+T[6:7]+T[22:]
> >>> T
> 






More information about the Python-list mailing list