Re: Cards deck problem

2006-10-26 Thread Michael Naunton
On 26 Oct 2006 02:27:16 -0700, Arun Nair <[EMAIL PROTECTED]> wrote: It is clear your professor does not understand computer science. Switch to a new university now. As noted in the problem, a deck has 52 cards. cardsLeft(self) therefore always returns 52. This may seem pendantic, but CS is

Re: Want to reduce steps of an operation with dictionaries

2006-10-26 Thread Michael Naunton
It does not look nice at all, mainly because you are asking either asking the question upside down, or not providing enough information. If a and b are of vastly different sizes, say so. Otherwise, think about your algorithm, and realize you are asking for things in b if they exist in a: > dict