Ricky's attempt at Python Challenge Questions