How you create games is a journey on its own and there are lots of tutorials out there for beginners.
To get your code running outside codecadamy:
Simply save this as a .html file and you will be able to run it in your browser.
For a code editor i use notepad++ which is a very basic editor.
Python is not that easy but there is a lot of programs that help make it easier. I myself use anaconda for python which can create environments that makes sure you don’t have your python and other packages installed all over the place.
A good package to use with python to create python games is pygame.