problems getting a single item out of a list
Sean 'Shaleh' Perry
shalehperry at attbi.com
Tue Sep 17 03:30:52 EDT 2002
On Tuesday 17 September 2002 00:19, Manuel Hendel wrote:
> I try to get a single item out of a list, but after this, the single
> item is stil a list item.
>
> domainfield = fields[3:4]
>
> I just want to get a new variable with a the value of the 3rd item of
> the list fields.
>
> Can anyone help?
>
> Thanks,
> Manuel
just use fields[2] (you start counting at zero).
More information about the Python-list
mailing list