[Tutor] Simple way to compare Two lists

2007-08-10 Thread Jaggo
Hello! I desperately need a simple way to compare whether any item of SmallList is in BigList. My current way, def IsAPartOfList(SmallList,BigList) for item in SmallList: if item in BigList: return True return False Takes up waay too much time to process. Can anyone think of any be

Re: [Tutor] Simple way to compare Two lists

2007-08-16 Thread Jaggo
ROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Tom Fitzhenry wrote: > On Fri, Aug 10, 2007 at 02:54:44AM -0700, Jaggo wrote: >> Can anyone think of any better way? > > If SmallList and BigList are sorted (in order), there is a faster method: > > def I

Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread Jaggo
Hey, I'm a rather new programmer, but it seems to me the digital to roman should be coded: While Digital_Input > 0: If Digital_Input > 1000 then: Roman = + M, Digital_Input = - 1000 elif Digital_Input > 900 then: Roman = + C, Digital_Input = - 900 ... Now if someone could please clarify [or forwar

Re: [Tutor] Money Matters

2007-03-22 Thread Jaggo
Hello! I read this list because I'm new to Python and I really am learning an average of something new I did not know from every digest hitting my inbox. I have no interest on the matter of money. Just my .02$. -Omer Tabach [EMAIL PROTECTED] wrote: Message: 3 Date: Wed, 21 Mar 2007 23:13:57 -

Re: [Tutor] Tutor Digest, Vol 37, Issue 62

2007-03-24 Thread Jaggo
Message: 2 Date: Sat, 24 Mar 2007 19:25:10 -0400 From: Jay Mutter III Subject: [Tutor] parsing text [...] 1.) when i do readlines and create a list and then print the list it adds a blank line between every line of text [...] ideas? Thanks again jay Well, regarding your first question: "print

[Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-12 Thread Jaggo
Hello. I haven't much experience with programming. I'd like to point this question to programmers who write in editors other than the default PyWin32: Why do you use your editor rather than using Pywin? What feature has editor X got that PyWin hasn't? (That is, other than "My editor runs on unix

Re: [Tutor] Inserting an Indent in IDLE?

2008-09-11 Thread Jaggo
In Pywin, and so I assume IDLE follows, you can just select more than One line and press tab. On Sun, Sep 7, 2008 at 5:41 PM, Alan Gauld <[EMAIL PROTECTED]>wrote: > > "Wayne Watson" <[EMAIL PROTECTED]> wrote > > Signature.htmlOccasionally I would like to indent 20-30 lines of code. >> I don't se

Re: [Tutor] Hay Variables

2008-09-14 Thread Jaggo
... or maybe a dict of class[class-name]=grade On Fri, Sep 12, 2008 at 10:42 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Sep 12, 2008 at 2:13 PM, > <[EMAIL PROTECTED]> wrote: > > > > I would use a list of grades and the length of the list. > > or perhaps a list of (class name, grade) pa