finding a value in a tuple
Paul Winkler
slinkp23 at yahoo.com
Fri Nov 30 13:12:27 EST 2001
On Thu, 29 Nov 2001 13:35:34 -0800, Garth Grimm <garth_grimm at hp.com> wrote:
>Dan Allen wrote:
>
>> Say I have
>>
>> mylist = ['one','two','three']
>>
>> which I presume is a "tuple" as I have been scanning the manual.
>
>
>That's a list, not a tuple. A tuple would be like
> myTuple = { 'one', 'two', 'three' )
oops, you mean: ( 'one', 'two', 'three' )
Garth, I assume that was a simple typo.
just trying to make sure we don't confuse the newbies...
--PW
More information about the Python-list
mailing list