Re: [Tutor] Dynamic naming of lists

2015-03-31 Thread Japhy Bartlett
ot. And sadly not a typo, my bad logic overwriting values! > > > > To: tutor@python.org > > From: __pete...@web.de > > Date: Tue, 31 Mar 2015 17:50:01 +0200 > > Subject: Re: [Tutor] Dynamic naming of lists > > > > Ian D

Re: [Tutor] Dynamic naming of lists

2015-03-31 Thread Ian D
Ok Thanks a lot. And sadly not a typo, my bad logic overwriting values! > To: tutor@python.org > From: __pete...@web.de > Date: Tue, 31 Mar 2015 17:50:01 +0200 > Subject: Re: [Tutor] Dynamic naming of lists > > Ian D wrote: > >&

Re: [Tutor] Dynamic naming of lists

2015-03-31 Thread Peter Otten
Ian D wrote: > Thanks I will look into these. The data going in is a list like > this:['broadcast', '"d8on"', 'broadcast', '"d11on"'] > > With the output beng something like this. > > lst_0 = ['broadcast', '"d8on"'] > > lst_0 = ['broadcast', '"d11on"'] Is that a typo, did you mean lst_1 = ['b

Re: [Tutor] Dynamic naming of lists

2015-03-31 Thread Ian D
7 -------- > Date: Tue, 31 Mar 2015 10:30:04 -0400 > From: da...@davea.name > To: tutor@python.org > Subject: Re: [Tutor] Dynamic naming of lists > > On 03/31/2015 10:00 AM, Ian D wrote: >> Hi >> >> I have a list that I am splitting

Re: [Tutor] Dynamic naming of lists

2015-03-31 Thread Dave Angel
On 03/31/2015 10:00 AM, Ian D wrote: Hi I have a list that I am splitting into pairs of values. But the list is dynamic in size. It could have 4 values or 6 or more. I originally split the list into pairs, by using a new list and keep a pair in the old list by just popping 2 values. But if th

[Tutor] Dynamic naming of lists

2015-03-31 Thread Ian D
Hi I have a list that I am splitting into pairs of values. But the list is dynamic in size. It could have 4 values or 6 or more. I originally split the list into pairs, by using a new list and keep a pair in the old list by just popping 2 values. But if the list is longer than 4 values. I cann