The codecademy.com Python course teaches Python 2.7, so you'll have to install that version (not 3.anything) to run the same code.
You'll also need to learn how to use an editor and the command line to prepare and run programs, or an IDE like the Idle application that's part of every standard Python install, or a third-party IDE like PyCharm (there's a free community edition of that, last I looked.)
If this is your first programming language, another source of beginner lessons is the "Invent with Python" book series.
When you're ready to learn more about Python beyond the small subset used to teach beginning programming concepts, two good books are:
Core Python Programming, by Wesley Chun
Beginning Python by Magnus Lie Hetland
My copy of Hetland's book is the original edition, titled "Practical Python", which is a much better description. It was renamed to be part of Apress "From Novice to Professional" series.