daviduf.blogg.se

Using python on mac terminal
Using python on mac terminal







Then, it said to type in: python hello.py That is actually the python interpreter's command line. So instead of something like ~/Path/to/your/exercise/filesĪt the start of the line, you would have encountered the below instead: # Bunch of text describing your python version and other things If you notice, the command-line interface would have changed quite a bit (I am on Windows so I am not sure how it looks like exactly on Mac).

using python on mac terminal

In the case of running python, what it does is actually to load a python interpreter inside your terminal. If it only has a command-line interface (like python) the program will be executed inside the terminal. What happens when you type a program name into terminal is that it basically executes the program, and if it has a GUI, the GUI window will pop up onto the screen.

using python on mac terminal

First, the lesson said to simply type, python, into terminal to start coding in python (I don't know if this is the way to say that, or if that just gives you the ability to run python code?)









Using python on mac terminal