1.0 Setup

Before we begin, let's do some setup for running Python code. If you have already installed a code editor or an IDE you can skip to the next topic.

Install a Code Editor or IDE

When it comes to running Python code there are many great code editors available on the internet. There are two main code editors which I'd recommend, Visual Studio Code and Pycharm. There are other options such as Sublime, Atom, etc. You can pick as per your preference, I won't mind. To install click their link and follow their instructions.

Running the code

Copy and save the code from the code block of sections to say a "test.py" file and using your favourite Code Editor run this "test.py" file using "python test.py" command.