Snakie Blocks - From Blocks to Python

Learn to program a Raspberry Pi Pico with drag-and-drop blocks in Snakie, and learn to read the MicroPython they write

By Kevin McAleer,    3 Minutes

Page last updated November 20, 2026


Course Cover Image


Overview

Snakie has a Blocks workspace: drag-and-drop programming, a lot like Scratch, but for a real Raspberry Pi Pico. The twist is the pane next door. As you snap blocks together, Snakie writes the MicroPython beside them, line by line. That Python isn’t a preview. It’s the actual program that runs.

That makes blocks a brilliant way to start. You get something working in the first minute, and you learn to read Python without ever sitting through a syntax lesson. By the end of this course you’ll build a reaction timer game from blocks and understand every line of the code it wrote.

Here’s a blocks program you can run right now. Press Run, then change the 400 in either pane and watch the other one follow.

import time
from machine import Pin
pin_15 = Pin(15, Pin.OUT)
while True:
    pin_15.toggle()
    time.sleep_ms(400)

Course Content

  • The Blocks workspace and the split view
  • Drawing with the turtle, with no hardware at all
  • Variables, maths, loops and decisions
  • Hardware blocks: LEDs, buttons, PWM, servos and buzzers
  • Functions, and blocks for the parts on your own breadboard
  • Reading the Python: hover, click a line, and Show me the Python
  • Simple and advanced blocks, and the grey Python blocks
  • Project: a reaction timer game

Key Results

After this course you will be able to:

  • Build working MicroPython programs from blocks
  • Explain what each block writes in Python
  • Control LEDs, buttons, buzzers and servos from blocks
  • Edit a program in either pane, blocks or code
  • Build and understand a complete reaction timer game

What you’ll need

  • Snakie, in your browser or the desktop app
  • Nothing else for most lessons, because the built-in simulator runs the programs
  • For the button lesson and the project: a Raspberry Pi Pico, a breadboard, an LED with a 330Ω resistor, a push button, a piezo buzzer and some jumper wires. The simulator can’t press a button yet, so those need the real thing

How the course works

Each lesson shows a program as blocks and as Python. Most programs are in a live Snakie box like the one above, with three views: Code, Split and Blocks. Run them, change them, and break them on purpose. Each box also has an Open in Snakie link that takes your version into the full app.

You may see a banner in a box saying This file uses advanced blocks. That’s about the grey import blocks at the top of the program. You can close it, or click Show them. Lesson 10 explains what advanced blocks are.

Every lesson ends with things to try, fixes for common problems and a short quiz.

Teachers: nearly every lesson works on a laptop or Chromebook with no hardware plugged in. Only pressing a real button, in the button lesson and the final project, needs a Pico.

Prerequisites

If you’ve never opened Snakie before, start with Getting Started with Snakie. It takes about an hour and shows you around the app.

Let’s snap some blocks together.

Next >

You can use the arrows  ← → on your keyboard to navigate between lessons.

Course complete

Congratulations, you finished Snakie Blocks - From Blocks to Python!

That's all 13 lessons done. Let people know, it's a great way to inspire someone else to start.

Share card: I completed Snakie Blocks - From Blocks to Python on KevsRobots
Post Bluesky LinkedIn Facebook


What are you looking for?
Watch Videos Get Ideas Learn Something Read a Review Read the Blog Search
... Z Z z