Newbie question on tuples
Jonathan Daugherty
cygnus at cprogrammer.org
Thu Feb 5 21:34:54 EST 2004
# Huh?
#
# >>> ("rock", "scissors", "paper").index("rock")
# Traceback (most recent call last):
# File "<interactive input>", line 1, in ?
# AttributeError: 'tuple' object has no attribute 'index'
# >>>
I thought he meant [].
--
Jonathan Daugherty
http://www.cprogrammer.org
"It's a book about a Spanish guy called Manual, you should read it."
-- Dilbert
More information about the Python-list
mailing list