AlgoBazaAlgoBaza

Age: 10-13

Python for kids

Programming step by step with Bajtek the robot

A course for beginners aged about 10-13. Every lesson is one new idea, a video, colourful animations and automatically checked tasks.

Module 1

First steps

Printing on the screen, calculating, variables and reading input.

Lesson 0

Installing Python on your computer

You'll install Python from python.org/downloads and run your first program on your own computer.

no tasks in this lesson
Lesson 1

Your first program

You'll write your first program that prints text on the screen and send it to the judge.

15 tasks
Lesson 2

Text and numbers in print

You'll tell text from numbers and print several things on one line.

15 tasks
Lesson 3

Adding, subtracting, multiplying

You'll use Python as a calculator: add, subtract and multiply even very big numbers.

17 tasks
Lesson 4

Whole numbers, numbers with a dot and text

You'll meet three kinds of values: whole numbers, numbers with a dot and text - and see how they differ.

10 tasks
Lesson 5

Division: / // %

You'll divide numbers in three ways: exactly, without remainder, and get just the remainder.

16 tasks
Lesson 6

Comments - notes for people

You'll add comments that Python skips to your code and learn to switch lines off with #.

15 tasks
Lesson 7

Text: joining and repeating

You'll join text with a plus and repeat it with a star - and draw a tree, stairs and a frame that way.

15 tasks
Lesson 8

sep and end in print

You'll change what print puts between the values (sep) and what it prints at the end of the line (end).

14 tasks
Lesson 9

Special characters: \\ \" \n

You'll print a backslash, a quote inside text and a new line - using special characters.

10 tasks
Lesson 10

Order of operations and powers

You'll know what Python calculates first and use brackets and powers.

16 tasks
Lesson 11

Variables - labelled boxes

You'll store numbers and text in variables and calculate with them.

17 tasks
Lesson 12

Changing a variable

You'll change a variable's value: increase it, decrease it and swap two variables.

17 tasks
Lesson 13

Errors - reading the messages

You'll read an error message, find the line with the mistake and fix it.

17 tasks
Lesson 14

input() - reading text

Your program will read text from the input and use it in its answer.

17 tasks
Lesson 15

type() - what type is a value?

You'll meet the types str, int and float and learn to check them with type().

16 tasks
Lesson 16

Changing types: str(), int(), float()

You'll turn text into a number, a number into text, and meet numbers with a dot.

15 tasks
Lesson 17

input() - reading a number

You'll read a number, turn it from text into a number and calculate with it.

17 tasks
Lesson 18

Module 1 summary: First steps

You'll go over everything from Module 1 - print, calculating, text, variables, errors and reading input - and put it together in tasks.

17 tasks

Module 2

Decisions - the program chooses

Comparisons, True and False, if, else and elif, and, or and not - the program does different things for different data.

Lesson 19

Comparisons: greater, less, equal

You'll ask Python a question about two numbers and get the answer True or False.

12 tasks
Lesson 20

True and False

You'll store the answer to a question in a variable and meet the bool type.

12 tasks
Lesson 21

if - when the condition is true

You'll write a program that runs lines only when a condition is true.

12 tasks
Lesson 22

if and else - one of two

You'll write a program that always picks one of two roads: if or else.

12 tasks
Lesson 23

elif - many options

You'll write a program with many roads and understand why the order of the conditions matters.

12 tasks
Lesson 24

Divisibility - % in conditions

You'll check whether a number divides by another with no remainder, and recognise even numbers.

12 tasks
Lesson 25

and, or, not - joining conditions

You'll join several conditions into one: all at once (and), at least one (or) or the other way round (not).

12 tasks
Lesson 26

An if inside an if

You'll ask a second question only when the answer to the first one is True.

12 tasks
Lesson 27

Comparing text

You'll check a password and a command, and put words in alphabetical order.

12 tasks
Lesson 28

Checking the data - before we calculate

You'll set up a guard: the program first checks the data and only then calculates - and doesn't crash.

12 tasks
Lesson 29

Mistakes in ifs

You'll find and fix mistakes in ifs - including the ones that give no message at all.

12 tasks
Lesson 30

Contest tasks with conditions

You'll solve real contest tasks: list all the cases and test every road of the program.

12 tasks
Lesson 31

Module 2 summary: Decisions

You'll go over the whole module and solve tasks that combine comparisons, ifs, and/or and the helpers.

12 tasks