Magzter Gold (Sitewide CA)
The Python Book (Digital)

The Python Book (Digital)

1 Issue, The Python Book 4th Edition

Also available on
Zinio Unlimited logo
1-month free trial

Get unlimited access to this article, this issue, + back issues & 5,000+ other magazines.

Renews at just $8.99/month after trial.

Cancel anytime.
Learn more

Play poker dice using Python

Put on your poker face and get ready to gamble as you hone your programming skill with a bit of poker dice
Play poker dice using Python
Resources Python 2: www.python.org/download IDLE: www.python.org/idle So you’ve learnt how to program tic-tac-toe and guessed your way to victory at hangman. Now it’s time to head to Las Vegas and play our cards right. Or in this case, virtual dice, and more like Reno as we continue with our Python game tutorials and introduce you to some poker dice. We’re again using some of the lessons we’ve already learnt, including random number generation, list creation and modification, human input, rule setting, scoring and more. But we’ll also be adding some new skills in this tutorial. Namely, we’ll be creating and appending lists with random numbers, and using functions multiple times in one block of code to cut down on bloat. Again, we recommend using IDLE, and we’re using Python 2…
You're reading a preview of
The Python Book (Digital) - 1 Issue, The Python Book 4th Edition

DiscountMags is a licensed distributor (not a publisher) of the above content and Publication through Zinio LLC. Accordingly, we have no editorial control over the Publications. Any opinions, advice, statements, services, offers or other information or content expressed or made available by third parties, including those made in Publications offered on our website, are those of the respective author(s) or publisher(s) and not of DiscountMags. DiscountMags does not guarantee the accuracy, completeness, truthfulness, or usefulness of all or any portion of any publication or any services or offers made by third parties, nor will we be liable for any loss or damage caused by your reliance on information contained in any Publication, or your use of services offered, or your acceptance of any offers made through the Service or the Publications. For content removal requests, please contact Zinio.

© 1999 – 2025 DiscountMags.com All rights reserved.