Analyzing a Dice Mechanic

A "Dice Mechanic"? Yes. The thing you do with the dice to determine an outcome. We'll use Python to see how the dice shake out.

A little backstory

For a casino game of craps, the roll of the dice can be 7 or 11 for an immediate win, 2, 3 …

more ...

Preorder the Python Real-World Projects Book

Want a book with dozens of project ideas?

Each has a description, and approach, and deliverables. It's a lot like ordinary development work, but with some detailed guidance from the author. (And no deadline imposed by your team lead or manager.)

These are projects you can do. You can post …

more ...


More Python Quirks Debunking

Stuff I found on the internet that I have to disagree with.

(And no, I didn't ask for clarification. If the author posts things without supporting details it suggests they might lack the supporting details. I can be charitable and assume they don't really care about providing useful information, but …

more ...





any() and all() and Identity Elements

This was a surprising thing (for me) to see. Surprising because -- after writing a book about functional programming, I'd forgotten that some of the ideas are actually really new to people.

(I've omitted the source of the quote because I want to reuse this without worrying about link rot. Some …

more ...