Popular programming problems solved in Python