Difficult Python problems for advanced students.