I\'m doing a foundation year in Computer Science (with no previous coding experience) and am struggling with the question below in Python, even after following guides/answer