Although we can type Python commands directly to the terminal, in almost any programming lenguage the best approach is to use a text editor to type your code and, in the case of Python that is a translated language, run it.
I will use Atom. It a text editor developed by GitHub, that I have used with Python, C, C++ and Java and it’s very friendly and I don’t think it spoils you that much.
Creating and Executing Python Files in OS X by Nuel is licensed under a Creative Commons Attribution 4.0 International License.