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?
In this article, we show you how to create a decorator that will email the output of the decorated function to some email address.
This is a simple script for converting leading tabs to spaces using Python.
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.
A simple Python module for holding color constants.
In this article, we challenge you to solve the birthday problem and present one possible solution.
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.
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.
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.
I have never need to use the finally keyword in Python to clean up after handling errors, so it took me some time to come up with a real-world use case. With the help a colleague, I did come up with one. This article describes a real-world use case for finally.