Guide · Python Programming Language

Python Programming – a Guide for Beginners

Python is one of the most popular programming languages. Its syntax is simple and readable, so it is an excellent first language. It is used for web applications, data analysis, automation, artificial intelligence and programming microcontrollers.

Python on this site is divided into several units. Each of them has its own guide with lessons.

  • Primary and secondary school
  • From beginner level
  • Examples in Python
Environments: the easiest one to start with is Thonny. Without installing anything you can work in Trinket or Replit, and for bigger projects use VS Code.

Some lessons linked below are available only in Serbian for now. They are marked (SR).

1 First steps

Installation, the first program and why Python.

2 Units of the Python course

Each unit has its own guide with lessons in order.

3 The most important basic lessons

If you want a quick overview, these are the key lessons of the basic course.

4 Next steps

Topics that come after the basic course.

Modules and import (SR)

Dividing a program into several files.

Open lesson →

Formatting text (SR)

f-strings and tidy output of results.

Open lesson →
Coming soon

Working with files

Reading and writing text and CSV files.

Coming soon

Object-oriented programming in Python

Classes, objects, methods and inheritance.

→ Suggested order

  1. Python basics
  2. MicroPython – if you work with the micro:bit
  3. Graphics and animations in Processing
  4. Web applications (Flask, Django)
  5. Your own projects

✎ The first Python program

# the program asks for a name and greets the user
name = input("What is your name? ")
print("Hello, " + name + "!")

Next step: Python – installation and the first run (SR).

+ External resources