iterating over list with one mising value
rantingrickjohnson at gmail.com
Tue Feb 7 16:34:14 CET 2012
On Feb 7, 8:46 am, Dave Angel <d... at davea.name> wrote:
> On 02/07/2012 07:27 AM, Sammy Danso wrote:> Hello experts,
> > I am having trouble accessing the content of my list.
> > my list content has 2-pair value with the exception of one which has single value. here is an example ['a', 1, 'b', 1, 'c', 3, 'd']
First you need to explain why you're using a flat list when a number
of other structures would be the better choice; like a list of tuples
or a dict.
More information about the Python-list