Basic Python Programming Exercise: A Penny Doubled Every Day
Python Coding Challenge: How long does it take you to make a million dollars starting with just a penny?
Python Coding Challenge: How long does it take you to make a million dollars starting with just a penny?
This is a simple script for converting leading tabs to spaces using Python.
In this article, we show you how to create a decorator that will email the output of the decorated function to some email address.
A simple Python module for holding color constants.
It’s easy to wind up with multiple installations of Python on Windows (and Mac). In this article, we show you how to locate them all.
The difference between str.isdigit() and str.isdecimal() in Python is, for most of us, academic and can be used interchangeably. For the academics out there, this article explains the difference.
In this article, we challenge you to solve the birthday problem and present one possible solution.
The Python documentation on pow() states that pow(x,y,z) is computed more efficiently than pow(x,y) % z, and our tests show that to be the case. Check out how we tested it.
Because I’d rather write Python code than practice against my robot, I’ve created a model in Python to try to get an idea of what I should practice most to win more games.
This article shows a Python script that demonstrates how the Collatz Conjecture works.