<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Noah Hall [mailto:enalicho@gmail.com] <br><b>Sent:</b> Friday, December 24, 2010 2:36 PM<br><b>To:</b> Robert Berman<br><b>Subject:</b> Re: [Tutor] A class list<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Alright, I'll begin by saying that you shouldn't use a list for cards , and a&nbsp;separate&nbsp;one for players. Instead, you should use dictionaries. For example -<o:p></o:p></p><div><p class=MsoNormal>players = { 1: &quot;John&quot;, 2:&quot;Phil&quot;,..,n:&quot;Ed&quot;}<o:p></o:p></p></div><div><p class=MsoNormal>Or, using your method -<o:p></o:p></p></div><div><p class=MsoNormal>for x in random.sample(xrange(low,high),n):<o:p></o:p></p></div><blockquote style='margin-left:24.0pt;margin-right:0in'><div><p class=MsoNormal>players[x] = random.sample(list_of_names, len(list_of_names))<o:p></o:p></p></div></blockquote><p class=MsoNormal>When I get back from holiday, I'll go through your code more&nbsp;thoroughly&nbsp;and give you a pointer in the right direction.<o:p></o:p></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'>&gt;&gt; Really big snip.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'>Noah,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'>Thanks for your prompt reply which generates its own unique question. You are saying I should have some concern for the players. But I don&#8217;t care about the people playing. I care about the cards in play and the card that reaches Bingo. I care about the winner only to the extent I want to know how many numbers have been pulled from the cage for him/her to achieve Bingo. Other than that, I don&#8217;t care so please elaborate why I care about the players; Besides I really cannot see why I should generate &nbsp;names(n) when card(n) will do just as nicely; I think.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'>Thanks again,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'>Robert<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p></div></div>
<!-- SPAMfighter Signature -->
<br><hr>I am using the Free version of <a href="http://www.spamfighter.com/len">SPAMfighter</a>.<br />SPAMfighter has removed 174 of my spam emails to date.<br /><br />Do you have a <a href="http://www.spamfighter.com/SLOW-PCfighter?cid=sigen">slow PC?</a> Try free scan!
</body></html>