Re: [Tutor] Novice Python Question

2008-07-01 Thread Kent Johnson
27;zipcode'), > ('albany','somestreet address','state','zipcode'), > ('albany','somestreet address','state','zipcode'),] > > Please excuse this is quasi-pseudo code but I think it clears things up a >

Re: [Tutor] : Novice Python Question

2008-07-01 Thread S Potter
To all; Since this was my first time using this resource I just wanted to extend my thanks for the many responses/explanations. I'm actually not using much of a tutorial but I will look over the links provided herein. I did make a mistake in my question post I wasn't using a dictionary but a so

Re: [Tutor] Novice Python Question

2008-07-01 Thread Alan Gauld
"S Potter" <[EMAIL PROTECTED]> wrote How do I filter my first list based upon the selected position or a variable equal to the value of the selected position from my second list? The most common way of filtering a list is to use a list comprehension filteredList = [item if ] where can be

Re: [Tutor] Novice Python Question

2008-07-01 Thread Kent Johnson
On Tue, Jul 1, 2008 at 7:51 AM, S Potter <[EMAIL PROTECTED]> wrote: > Question 1.) > I have dictionary or list containing multiple instances 'duplicate > entries' of the same information. Lets say it's a list of addresses and list > item i[0] contains city values equal to 'Albany' . > > I

Re: [Tutor] Novice Python Question

2008-07-01 Thread Cédric Lucantis
Le Tuesday 01 July 2008 13:51:24 S Potter, vous avez écrit : > To whom it may concern; > > I am a just experimenting with Python and learning as I go. The majority of > my stumbling blocks have been syntax. So with that I must ask a couple of > technical albeit probably very simple questions. Hopef

[Tutor] Novice Python Question

2008-07-01 Thread S Potter
To whom it may concern; I am a just experimenting with Python and learning as I go. The majority of my stumbling blocks have been syntax. So with that I must ask a couple of technical albeit probably very simple questions. Hopefully, you may provide me some insight and help me on my way. Que