<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR> <BR>
<HR id=stopSpelling>
From: rwobben@hotmail.com<BR>To: davea@ieee.org<BR>Subject: RE: [Tutor] question<BR>Date: Tue, 28 Sep 2010 14:22:17 +0000<BR><BR>
<META name=Generator content="Microsoft SafeHTML">
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<BR> <BR>> Date: Tue, 28 Sep 2010 10:02:27 -0400<BR>> From: davea@ieee.org<BR>> To: rwobben@hotmail.com<BR>> CC: tutor@python.org<BR>> Subject: Re: [Tutor] question<BR>> <BR>> <BR>> <BR>> On 2:59 PM, Roelof Wobben wrote:<BR>> > Hello,<BR>> ><BR>> ><BR>> > Im now studying this page :<BR>> > http://openbookproject.net/thinkcs/python/english2e/ch16.html<BR>> ><BR>> > But I don't get it why aces are now lower then deuces in the cmp function.<BR>> ><BR>> ><BR>> > Roelof<BR>> ><BR>> > <BR>> Why would you be surprised that aces are lower than deuces? If aces are <BR>> represented by 1, and deuces by 2, then 1 is less than 2.<BR>> <BR>> Notice that because self.suit is compared first, an ace of spades is <BR>> higher than a deuce of hearts. It's only within the same suit that an <BR>> ace is "less than" a deuce.<BR>> <BR>> DaveA<BR>> <BR>> <BR>> <BR>> <BR><BR>Hello Dave, <BR> <BR>In some games in the Netherlands Aces can have a value of 11 or 1 .<BR>So if Aces are 11 then Deuces is lesser then Aces.<BR> <BR>Can I say that the position of the list is a representation of the value.<BR> <BR>Roelof<BR> <BR>                                            </body>
</html>