Python Get Started

Python Getting Started

To write and run Python code, you usually need to install Python on your computer. However, on IntricateDevo, you don't need to install anything! You can run all the Python code directly in your browser using our built-in editor.


Python Install

If you want to install Python on your own computer, you can download it for free from the official website: python.org.

Checking if Python is Installed

To check if you already have Python installed on a Windows PC, open the command line (cmd.exe) and type: python --version

If you are on Linux or Mac, open the terminal and type: python3 --version

If you find that Python is not installed, you can download it for free from python.org. The installer is very straightforward, but make sure to check the box that says "Add Python to PATH" during installation on Windows.


Writing Python Code in Files

While you can test short snippets in the command line using the Python Interactive Shell, most of the time you will write Python code in a file and run it.

Python files end with the .py extension.

  1. Open your favorite text editor (like VS Code, Notepad, or Sublime Text).
  2. Write the following code:
    print("Hello, World!")
    
  3. Save the file as helloworld.py.
  4. Open your command line or terminal, navigate to the folder where you saved the file, and run it by typing: python helloworld.py

Python Quickstart

In Python, the print() function is used to output text to the screen.

print("Hello, World!")