Feeds:
Posts
Comments

Archive for September 3rd, 2009

What is a tuple?

I get asked this from time to time, so for the fun of it, I’ll post this: Tuples are immutable lists in python (and other languages).  Very lightweight, unchangable arrays.  They are used for storing multiple values in one variable (usually a fixed number of values). x = (1, 2, 3, ‘abc’) x[0] -> 1 [...]

Read Full Post »