My attempts at solving python challenge questions