Skip to main content
Codepiko
TR
All guides

What is block-based coding, and when should children move to Python?

In block-based coding a child does not type commands but snaps pieces together on the screen. This guide explains what blocks make easier, where they fall short, and which signs and steps can guide the move to Python.

Last updated: 11 November 2026

What is block-based coding?

In a block-based editor every command is a block: “move forward”, “turn right”, “repeat 4 times”. The child drags blocks into a stack, places them inside a repeat or condition block and runs the program. Blocks only fit together in ways that make sense, so there are no spelling mistakes; a bracket, colon or indent cannot be forgotten.

The ideas learnt with blocks are the same as in text-based languages. Steps in order, loops, conditions, variables and functions all exist in Python; only the way they are written changes. Block coding is a setting where the same way of thinking is practised with fewer obstacles.

Why start with blocks?

No typing barrier
The child spends their time thinking about the order of steps, not hunting for a missing bracket.
The options are visible
Every available command sits in the palette. The child does not have to remember what to type, only recognise it.
Results show up at once
When the program runs, the robot moves or the drawing appears. Mistakes show up at the same moment: the robot hits a wall.
The structure can be read at a glance
Blocks inside a loop sit inside a box, so it is easy to see which commands repeat.

Where blocks fall short

As a program grows, the blocks take up a lot of screen space, and scrolling through hundreds of them gets hard to read. Working with lists or text is awkward with blocks. Most software used in real life is also written as text. These limits are what make a move to a text-based language worthwhile at some point.

Is the student ready for Python?

There is no fixed age or grade for the move; two students in the same class may be ready at different times. What matters is what the student can already do with blocks. If you see most of the following signs in a student, it may be time to try Python:

  • They can write programs with a condition inside a loop, such as “repeat 4 times, and if there is a star on the way, collect it”.
  • They can say where the robot will end up before running the program.
  • When a program goes wrong, they find the faulty block themselves.
  • They suggest a loop or a function on their own to shorten a long program.
  • They find letters and symbols on the keyboard easily.

Some outcomes in the course programme also name the block-based environment, for example BTY.5.6.4 “Manage the software development process in a block-based environment” and BTY.6.6.1 “Use the building blocks of software development in a block-based environment”. In our view Python is the next step for a student who handles these outcomes comfortably with blocks.

How to make the move

Rather than switching all at once, it helps to use both for a while. This is the order we suggest in Codepiko:

  1. Write a program on a level of the block coding map and open the Python tab, where the same program appears in Python. Let the student change one block and watch the line of code change: when the number in the repeat block changes, so does the number in the code.
  2. Open the flowchart tab to see the program’s steps as a diagram. Blocks, code and diagram are three views of the same algorithm.
  3. Move on to the Python exercises. 42 exercises are arranged in a 8-chapter learning path and run in the browser; nothing needs to be installed.
  4. Ask the student to rewrite a problem they solved with blocks in Python. Because they already know the solution, their attention goes to how it is written.
  5. Use the debugging exercises to practise reading error messages.

What to expect in class

  • In the first lessons most errors come from typing: a missing colon, an unclosed quote, a wrong indent. This is normal and does not mean the student has not understood the idea.
  • Python’s error messages are in English. Teaching students to look at the line number in the message helps more than translating the whole message.
  • Indentation has meaning in Python: lines inside a loop are shifted to the right. This matches the blocks that sit inside the repeat box in the block editor.
  • On a Turkish keyboard some symbols are in different places from an English one. In the first week, a note on the board showing the colon, bracket and quote keys saves time.

Frequently asked questions

Is block-based coding real coding?
Yes. A program made of blocks is an algorithm too, and ideas such as sequence, loops, conditions and variables are the same as in text-based languages. Codepiko also shows the Python version of every block program.
Do students have to finish the blocks before moving to Python?
No. Some students get curious about Python halfway through the block map. A student who is comfortable with loops and conditions can start the Python exercises while carrying on with blocks.
Does Python need to be installed on the computer?
Not on Codepiko. Python code runs inside the browser and is not sent to a server. The first time the Python page opens, the Python environment is downloaded into the browser, which needs an internet connection.