Python course online
Python is the most frequently recommended first text-based programming language: it has a simple, readable syntax and gives results quickly. On BitWizards you learn it in the browser, with no installation. You write code, click “Run” and immediately see the result in the console or on a graphics board. Every course can be tried without signing in, and schools use the platform for free. The courses are in Polish.
Who it is for
- Primary school, grades 7-8: the courses Board - first steps in Python and Drawing with an arrow bridge the gap from blocks to real code. Students see what each line does, because an object on the board moves or draws.
- General secondary school: the Python Basics course goes from
printto lists, dictionaries and the classic algorithms of the core curriculum and the matura. The algorithms themselves (Euclid, the sieve of Eratosthenes, number systems, sorting) with code to step through are described in the algorithms from the core curriculum section (in Polish). - Technical school: Python is a convenient language to practise algorithms before the INF.04 exam, especially at the start.
- Teachers: ready material with examples and exercises that check themselves, so time can go to the students who need help.
What you will learn
Python Basics (12 topics, 158 items)
A console course without object-oriented programming. 87 exercises are checked automatically.
- Introduction - first program,
print, arithmetic, first condition and loop. - Variables, types and operators -
int,float,str,bool, conversions,/and//, remainder%. - Conditional statements - comparisons,
and/or/not,if/elif/else,match-case, the conditional expression. - Loops and recursion -
forwithrange(),while,breakandcontinue, nested loops, recursion (factorial, Fibonacci). - Lists - adding and removing items, slices,
len,sum,max,sorted, list comprehension. - Dictionaries - key-value pairs, access by key, checking keys, iterating.
- Tuples - immutable collections, unpacking, returning several values.
- Sets - unique items and set operations.
- Algorithms on lists - bubble and insertion sort, linear and binary search, written by hand.
- Functions and modules -
def, parameters,return, themathandrandommodules, string operations. - Exceptions -
try/except/else/finallyand raising errors withraise. - Colors in the console - ANSI codes in
print: text and background colors, bold, a progress bar, a PASS/FAIL report and a colorful Christmas tree.
The course has a Java counterpart with a similar topic layout. A student who does both sees the same logic in two languages.
Board - first steps in Python (grades 7-8)
Six topics: first object, movement, directions, many objects, decisions (if), and the console and variables. Students create objects on a 201x201 board (centre at 0,0) and control them with code.
Drawing with an arrow (turtle-style graphics)
Eight topics: first arrow moves, loops and polygons, angle and position, the pen (color and width), spatial patterns, circles and spirals, webs, and mathematical curves computed with math.sin and math.cos. The result is compared with a model drawing.
Characters and scenes in Python (grades 6-8)
A bridge from the arrow to games: characters are Sprite() objects, still without custom classes or a game loop. Eight topics: a character on the board (image, color, size), position and direction, moving with the pen, loops building rows and grids, randomness, lists of characters, decisions (if, distance, touching) and scenes: an aquarium, space, a forest and a city. Course (in Polish): Postacie i sceny w Pythonie.
Algorithms
Two courses: algorithms from the core curriculum and Algorithms: extended level (16 topics). Descriptions with step lists, pseudocode and flowcharts are in the algorithms section (in Polish).
Games in Python (grades 7-8 and secondary school)
Two courses: ten lessons of game mechanics (classes, the game loop, keyboard, mouse, collisions, randomness, game state) and games written step by step: first three simple ones (each richer than the previous), then three complete ones.
How Python works in the browser
- Stepping: the “Step” button runs the program line by line and highlights the current line, also in the game loop, and steps into functions. The preview shows variables and the call stack, breakpoints can be set, and Pause stops the program at any moment. A slider sets the pace. It is the simplest way to understand loops and conditions.
- Automatic checking: the check runs by itself at the end of a run. It compares the printed output with the expected one or checks variable values. A completed exercise gets a green star, and the “Expected output” button shows what the program should print.
- Graphics mode: the student writes a class inheriting from
Sprite, sets its shape, color and position, and theupdate()method runs every frame. There is movement, rotation, a pen that leaves a trail, collisions and keyboard and mouse handling, so a simple game can be written. - Input data: some exercises give the program a list of numbers, also a random one on every run. The solution has to work in general, not just for one example.
- Safe execution: the code runs in a separate browser thread. Even
while Truedoes not freeze the tab, and the Stop button interrupts the program at once.
Python at school
The teacher creates a class and hands out an invitation code. Younger students can get light accounts with a login and PIN, without an email address. Topics are released gradually; the teacher sees the class progress, watches a student’s work live and replays the history of writing code. Grades use the Polish 1-6 scale, and a test can be run as a timed exam. “Show to class” mode puts the teacher’s demo or a student’s work on the projector, optionally hiding the author. More on working with a class: for schools and computer science at school.
Python is also part of the class courses, which follow the yearly teaching schedule (in Polish): drawing with an arrow in grade 6, first programs and algorithms in grade 7 and grade 8 (with a game project), in secondary school general secondary grade 1 and technical school grade 1, and at the extended level four courses from grade 1 to the matura year, grade 4. The schedules with lesson lists are collected on the core curriculum page (in Polish).
Python in exams and the matura
- Computer science matura: Python is one of the languages allowed for programming tasks. The Python Basics topics (lists, dictionaries, sorting and searching, functions) cover the typical skills these tasks need.
- INF.04: the practical part of INF.04 (a Polish vocational IT qualification) requires a working program. Python teaches variables, conditions, loops and functions well, and from there you can move on to C++ or Java, and with Java to Android mobile apps. Desktop window apps are practised in Python in the tkinter course or in C# in the WPF course.
Where to start
For younger students I recommend the Board, for older ones straight away Python Basics. How to set up a class is described on the getting started page.
Colors in the console
The BitWizards console shows ANSI colors, so print can print a red error message, a green “OK” or a Christmas tree with colorful baubles. Codes, examples in five languages and common mistakes are on the terminal colors page, and the exercises are in the Colors in the console topic of the Python Basics course (in Polish).
Related technologies
JavaScript - C++ - Java