The code for the final challenge in a Python competition that I competed in.