Scratch to python

simple tutorials for international students

Transfer your Scratch programming skills from block-based to text-based coding in the python programming language.

Updated 3rd Aug 2021 , by Dr Codie, 10 min read

Many of us learn how to use Scratch and understand some programming concepts but there is nothing to help jump to a text-based programming language like python. Here is a series of videos to help those of you that want to move from scratch to python

learn python from Scratch

What to learn after Scratch? You want to continue coding after scratch, so learn python after scratch.

You can use your scratch skills when you move from scratch to Python. This series of videos on a YouTube playlist will show you how to use scratch to learn python basics.

Use your scratch knowledge like controls, if, if else, repeat loops, forever loops, operators, variables, lists, broadcasts, say and ask, and we will show you how to write these in python code.

python from scratch

Many people learn scratch as their first programming language because it is easy-to-learn, fun and free. But moving from block programming to another language is not so easy.

There does not seem to be anything that follows scratch. So, what to learn after Scratch? Python is a good language to learn, but can you use any of your knowledge that you have from scratch programming to learn python? Yes, you can.

There are many concepts that you already know from scratch that can help you learn the basics of python. Good luck with your coding!

 

Use your scratch knowledge like controls, if, if else, repeat loops, forever loops, operators, variables, lists, broadcasts, say and ask, and we will show you how to write these in python code.

python concepts using Scratch programming

It helps to know Scratch when learning python as there are many programming concepts used in both Scratch and python.

Learn python after Scratch shows these concepts using simple examples in Scratch and then the same program in python code.

There are many python tutorials for beginners but they do not use existing knowledge that many people ave if they have learnt Scratch.

Learn | Python | After Scratch | YouTube | Playlist

An introduction to programming concepts that you can learn in Scratch that you will also use in python. This video also includes some information to the question “why python?”.

requests on YouTube

Scratch MyBlock is similar to functions in python so here is an example in both scratch and python of using a function.
 

Scratch to Python Concepts

What should you learn after Scratch? You want to continue to code, so learn python after scratch. You can use your scratch skills when you move from scratch to Python. This series of videos on a YouTube playlist will show you how to use scratch to learn python basics.

Use your scratch knowledge like controls, if, if else, repeat loops, forever loops, operators, variables, lists, broadcasts, say and ask, and we will show you how to write these in python code.

python variables & types

Learn the basics of python using the IDLE and the simple concepts of operators like addition and subtraction, and variables.

python control statements

In Scratch we have control statements for loops and if statements.

If statements in programming are called conditionals.

scratch ask wait to python input

python lists & input

Data structures store multiple values and the list in python is the primary one used.

python functions

We use broadcast in Scratch to call other blocks, so this is related to calling a function in python.

Broadcast | Wait | to Functions

Scratch MyBlock is similar to functions in python so here is an example in both scratch and python of using a function.
 

Python Functions from Scratch MyBlock

Scratch to Python Exercises

If you need help then use the videos, see below, or ask us for help in a comment and we will assist with any inquiry. Enjoy and Good luck!

This first video introduces a challenging practice exercise showing the design using Scratch. Learn python after Scratch using this exercise to build on what you have learnt.

scratch to python design and answer

python exercise

Input, variables, if statements, loops, lists and functions, all in one exercise.

  1. Learn | Python | After Scratch | Exercise | Design
  2. Learn | Python | After Scratch | Exercise | Answer

Break the problem down into parts, testing your python code as you go.

python order

These videos follow on from the exercise challenge seen in the two previous videos and is the first part of two videos that show how we can order the table.

  1. Learn | Python | After Scratch | Order | Table
  2. Learn | Python | After Scratch | Order | Table | II
scratch controls to python

python dictionaries

These videos  show how we can use a python dictionary to store the table.

  1. Learn | Python | After Scratch | Dictionary
  2. Learn | Python | After Scratch | Dictionary | II

We get match scores from a user, use the same code to calculate the match points, and then create a match points dictionary that is then used to update the league, also stored in a python dictionary.

scratch to python IDLE variables operators

python skills

To learn python coding after Scratch we need to practice.

Learn | Python | After Scratch | pre | task | Skill

These small tasks will help our skill to tackle a difficult task. We can find the answer to a problem by breaking down the problem into parts and solve each part.