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
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.
Installation and the first run (SR)
Installing Python and the Thonny environment, the first program.
Open lesson →The first program – print() and comments (SR)
Printing text and writing comments.
Open lesson →Why learn Python? (SR)
Where Python is used and why it is a good first language.
Open lesson →2 Units of the Python course
Each unit has its own guide with lessons in order.
Python – the basic course
Variables, branching, loops, functions, lists and modules.
Open lesson →MicroPython and micro:bit
Python on a microcontroller: LED matrix, buttons, sensors and radio.
Open lesson →Python and Processing
Drawing, animations, games and charts.
Open lesson →Python for the web
Web applications in Flask and Django.
Open lesson →Python projects
Projects from simple to advanced.
Open lesson →3 The most important basic lessons
If you want a quick overview, these are the key lessons of the basic course.
Variables and data types (SR)
int, float, str, bool and type conversion.
Open lesson →Input – input() (SR)
Reading and converting entered values.
Open lesson →Branching – if, elif, else (SR)
Making decisions in a program.
Open lesson →for and while loops (SR)
Repeating statements and the range() function.
Open lesson →Functions (SR)
Defining and calling your own functions.
Open lesson →Lists (SR)
Working with lists and the most common operations.
Open lesson →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 →Working with files
Reading and writing text and CSV files.
Object-oriented programming in Python
Classes, objects, methods and inheritance.
→ Suggested order
✎ 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).
