This is a machine-translated text that may contain errors!
Mac Installation
If you are on a Mac, you should already have Python installed. You can verify this by opening the “Terminal” program, then you can type python3 -V (capital V for version) in the terminal. This will display the version you have of Python. To test if everything works, you can proceed further.
Important!
It may display “No developer tools found”. If this appears, simply let your machine install the developer tools. Once this is finished, close the terminal and start a new terminal and type python3 -V again to check if Python is installed.
Windows Installation
On Windows, Python is not installed by default, so we must download and install it ourselves Python download.. After downloading, simply run the installation file and follow the instructions.
Før du installerer! ☝🤓
You MUST check (✅) “Add Python to PATH” for it to work. If you do this incorrectly, the easiest solution is to uninstall Python and reinstall it. It may also be important to check “Use admin privileges when installing py.exe”

Python Extension in VS Code
It is strongly recommended to install the “Python” extension in VS Code. It will give you hints about functions and more in Python.
A simple test program
After installation, you can open VS Code.
- Go to File -> Open Folder.
- Create a folder in for example “Documents” called “Python”.
- Create a file called
hello.py. - Write the following program that prints a nice little message:
# Skriver ut en hilsen til 1IM!
print("Hallo, 1IM!")
What is happening in this code?
print is a built-in function in Python that prints text to the terminal window. You may not know what a function is yet, but the most important thing to know is that there must be parentheses after the function name. Text in Python must be between quotation marks ("), what is between them is what will be printed.