From: rwob...@hotmail.com To: da...@ieee.org Subject: RE: [Tutor] question Date: Tue, 28 Sep 2010 14:22:17 +0000 > Date: Tue, 28 Sep 2010 10:02:27 -0400 > From: da...@ieee.org > To: rwob...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor] question > > > > On 2:59 PM, Roelof Wobben wrote: > > Hello, > > > > > > Im now studying this page : > > http://openbookproject.net/thinkcs/python/english2e/ch16.html > > > > But I don't get it why aces are now lower then deuces in the cmp function. > > > > > > Roelof > > > > > Why would you be surprised that aces are lower than deuces? If aces are > represented by 1, and deuces by 2, then 1 is less than 2. > > Notice that because self.suit is compared first, an ace of spades is > higher than a deuce of hearts. It's only within the same suit that an > ace is "less than" a deuce. > > DaveA > > > > Hello Dave, In some games in the Netherlands Aces can have a value of 11 or 1 . So if Aces are 11 then Deuces is lesser then Aces. Can I say that the position of the list is a representation of the value. Roelof
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor