Project Euler solutions while learning Python