Solutions for Code Abbey problems in Python