Search⌘ K

Executing Python Code

Explore different methods to execute Python code, including using IDEs, the interactive Python shell, and running .py files from the terminal, to confidently test and run scripts on your machine.

We'll cover the following...

In the beginning of the course, we wrote a simple line of code for printing “Hello World":

Python 3.10.4
print("Hello World")

So, how would we run the code we wrote above on our machines? If we use an IDE, we can simply write the code in the IDE’s text editor and run it (usually by pressing a button ...