I build my code in sublime text and run it using python 3. For some reason the code doesn't seem to work in the codecademy environment, but works fine in my computer. Here is the code:
If this is a bug in my code that maybe I'm not noticing I would appreciate the help. If not it could be a bug in the codecademy environment.
edited with pic so indentation is clear.