[Tutor] A class list

Noah Hall enalicho at gmail.com
Fri Dec 24 22:26:12 CET 2010


Based on what you initally stated, that you would have a list containing 500
numbers, and for each number, there would be a player, using a dict would be
ideal. For example, once you've got the winning number, how do you then
intend on handling what happens to each player as they win? Do you intend to
forget them? The player index need not be a name - it could be a number,
simply referring to the player, and then storing each number that player
stores in a list, for example

players = {1:[0,0,0,0,0]....n:[0,0,0,0,0]}

This is just some food for thought.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101224/e8db3ea0/attachment.html>


More information about the Tutor mailing list