[Tutor] complete newbie tuple question
Colin Day
spotfreerinse@home.com
Sat, 19 May 2001 17:30:38 -0500
Hello all, I just starting trying to learn to Program and I was reading
Alan's very helpful website when I came across the section on indexing and
tuples:
aTuple = (1,3,5)
>>> print aTuple[1] # use indexing like a list
3
now this confuses me (like a lot of things so far :) ) because the way it
seems to me is that
print aTuple[1] would refer to the first charachter in the tuple, in
this case "1", but it doesn't.
could someone help clear this up for me?
thanks
Colin