python code written for python courses on codecademy