SlideShare a Scribd company logo
4
Most read
6
Most read
14
Most read
SCRATCH TO PYTHON PROGRAMMING
Overview: Some questions that need answering
•Scratch is a good basic tool to get
visually pleasing animations running with
little working time.
•However we have to ask; "Who actually
made scratch?", "How was it made?".
•The programming world is much bigger
than Scratch. Real projects use a lot of
different languages working together -
And a lot of different people working
together.
•Are there other languages out there?
Basic differences between Scratch and Python
In Scratch each sprite has it's own code. Sprites interact
with each other through shared resources such as
variables and messages. This is often confusing and
leads to poorly maintainable code.
In Python each line of code is read by a Python
"Interpreter" and the computer executes the
instructions directly and in sequential order.
Basic differences between Scratch and Python
In Scratch each block is read in sequential order. The
code starts with an event or "Hat" block. Placing blocks
within outer "C" blocks is used to group blocks together.
Each sprite has its own set of blocks which may or may
not interact with each other.
In Python every line is read; line by line from top to
bottom, reading each line from left to right, evaluating
each statement in turn and if necessary assigning its
return value to a variable. Indentation groups
statements together.
Lets see how our familiar Scratch code looks in Python...
Variables
Scratch: In Python variables have to be given an initial value:
Arithmetic
Scratch:
In Python the modulus operator or "mod" is
symbolised by a "%" symbol. We use it to get the
remainder of a division
Operators
Scratch: Python:
Conditionals
Scratch: Python:
Loops
Scratch: Python:
Random Numbers
Scratch: Python:
Random is a whole library of functions.

We have so much more we can do with random numbers in Python than in Scratch!
Lists
Scratch: Python:
Let’s add some objects to our lists
or
Lists in Python start at index 0
Lists
Scratch: Python:
We can do so much more in Python than in Scratch. We can
sort the list, reverse the order of the list etc...
Functions
Scratch: Python:
“But Python is boring. I want to make games in Scratch”
You can make games in Python.

You could remake the entire Scratch interface using Python if you really wanted to.

Here are some examples of some games that utilise the PyGame library. But you need to build up
your skill level and master the basics before you attempt large projects.
What else is Python used for?
Python is actually not used that often for making games as it has many "resource intensive" features. When used
correctly, you will rarely run into limitations with these features and they will in fact speed up how long it takes you to
write code!

Python is often used for data analytics in the STEM community although this definitely not the only use for Python.. Some
common packages used by these communities include NumPy, SciPy and Matplotlib but there are MANY MORE...

You can write your own library and share with the community...
This is why we use Python, it is highly extensible and has a massive user base.
It is a good general purpose programming language to learn!
Some famous services that utilise Python in
their code base
TIOBE index for various programming
languages in August 2017
Emily De La Peña
Founder of Coding Kids, Advance Queensland’s Community Digital Champion
codingkids.com.au
facebook.com/codingkidstutoring
@EmilyFdelaPena & @coding_kids
linkedin.com/in/emilydelapena/
@emily.f.delapena

More Related Content

ODP
Introduction to Python - Training for Kids
PPTX
Computer Coding with Scratch: Lesson 2_primaryschoollessons
PDF
Python for Kids | CodeMonkey
PPTX
Lecture 1.pptx
PDF
Coding Basics with Scratch
PPTX
Scratch: Programming for everyone
PDF
scratch-3-tutorial.pdf
PPTX
scratch.pptx
Introduction to Python - Training for Kids
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Python for Kids | CodeMonkey
Lecture 1.pptx
Coding Basics with Scratch
Scratch: Programming for everyone
scratch-3-tutorial.pdf
scratch.pptx

What's hot (20)

PDF
Scratch Animation
PPT
Introduction to Scratch Programming
PPT
Python ppt
PPTX
Scratch programming
PPTX
Python Data-Types
PPTX
PDF
Python Basics | Python Tutorial | Edureka
PDF
Python book
PDF
Overview of python 2019
PPTX
Scratch Programming
PPTX
Scratch Lesson 1
PPT
Intro To Scratch
PPT
Scratch Lesson 1 – Basics
PDF
Introduction to python programming
PPTX
Python Data Structures and Algorithms.pptx
PDF
Python :variable types
PPTX
Scratch Lesson 2
PPTX
Looping Statements and Control Statements in Python
Scratch Animation
Introduction to Scratch Programming
Python ppt
Scratch programming
Python Data-Types
Python Basics | Python Tutorial | Edureka
Python book
Overview of python 2019
Scratch Programming
Scratch Lesson 1
Intro To Scratch
Scratch Lesson 1 – Basics
Introduction to python programming
Python Data Structures and Algorithms.pptx
Python :variable types
Scratch Lesson 2
Looping Statements and Control Statements in Python
Ad

Similar to Looking at how Scratch and Python compare (20)

PPTX
Class 8th Book key board Chapter 5 Excersie.pptx
PDF
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
PDF
Introduction to python
PDF
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
PPTX
Python Prgramming basics for Beginnerss for User friendly interface
PPTX
Lecture on Fundamentals of Python Programming-1
PPTX
Phython Programming Language
PPTX
Pi Is For Python
PDF
My summary for cs001x computer science for beginners
PPTX
Python - An Introduction
PPTX
4_Introduction to Python Programming.pptx
PDF
Python overview
PPTX
Lacture 1- Programming using python.pptx
PPTX
An Introduction To Python - Python, Print()
PDF
Python final ppt
PDF
Pythonfinalppt 170822121204
PPTX
Python basics
PDF
Introduction to Python
PPTX
Introduction to Programming.pptx ok ok ok
PPT
Python programming-2-2048 (30 files merged).ppt
Class 8th Book key board Chapter 5 Excersie.pptx
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
Introduction to python
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Python Prgramming basics for Beginnerss for User friendly interface
Lecture on Fundamentals of Python Programming-1
Phython Programming Language
Pi Is For Python
My summary for cs001x computer science for beginners
Python - An Introduction
4_Introduction to Python Programming.pptx
Python overview
Lacture 1- Programming using python.pptx
An Introduction To Python - Python, Print()
Python final ppt
Pythonfinalppt 170822121204
Python basics
Introduction to Python
Introduction to Programming.pptx ok ok ok
Python programming-2-2048 (30 files merged).ppt
Ad

Recently uploaded (20)

PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
innovation process that make everything different.pptx
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Digital Literacy And Online Safety on internet
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Testing WebRTC applications at scale.pdf
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Paper PDF World Game (s) Great Redesign.pdf
Power Point - Lesson 3_2.pptx grad school presentation
Slides PPTX World Game (s) Eco Economic Epochs.pptx
tcp ip networks nd ip layering assotred slides
Introuction about ICD -10 and ICD-11 PPT.pptx
innovation process that make everything different.pptx
The Internet -By the Numbers, Sri Lanka Edition
Introuction about WHO-FIC in ICD-10.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Digital Literacy And Online Safety on internet
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PptxGenJS_Demo_Chart_20250317130215833.pptx
Testing WebRTC applications at scale.pdf
WebRTC in SignalWire - troubleshooting media negotiation
Job_Card_System_Styled_lorem_ipsum_.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Design_with_Watersergyerge45hrbgre4top (1).ppt
Cloud-Scale Log Monitoring _ Datadog.pdf
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
SAP Ariba Sourcing PPT for learning material
Paper PDF World Game (s) Great Redesign.pdf

Looking at how Scratch and Python compare

  • 1. SCRATCH TO PYTHON PROGRAMMING
  • 2. Overview: Some questions that need answering •Scratch is a good basic tool to get visually pleasing animations running with little working time. •However we have to ask; "Who actually made scratch?", "How was it made?". •The programming world is much bigger than Scratch. Real projects use a lot of different languages working together - And a lot of different people working together. •Are there other languages out there?
  • 3. Basic differences between Scratch and Python In Scratch each sprite has it's own code. Sprites interact with each other through shared resources such as variables and messages. This is often confusing and leads to poorly maintainable code. In Python each line of code is read by a Python "Interpreter" and the computer executes the instructions directly and in sequential order.
  • 4. Basic differences between Scratch and Python In Scratch each block is read in sequential order. The code starts with an event or "Hat" block. Placing blocks within outer "C" blocks is used to group blocks together. Each sprite has its own set of blocks which may or may not interact with each other. In Python every line is read; line by line from top to bottom, reading each line from left to right, evaluating each statement in turn and if necessary assigning its return value to a variable. Indentation groups statements together.
  • 5. Lets see how our familiar Scratch code looks in Python...
  • 6. Variables Scratch: In Python variables have to be given an initial value:
  • 7. Arithmetic Scratch: In Python the modulus operator or "mod" is symbolised by a "%" symbol. We use it to get the remainder of a division
  • 11. Random Numbers Scratch: Python: Random is a whole library of functions.
 We have so much more we can do with random numbers in Python than in Scratch!
  • 12. Lists Scratch: Python: Let’s add some objects to our lists or Lists in Python start at index 0
  • 13. Lists Scratch: Python: We can do so much more in Python than in Scratch. We can sort the list, reverse the order of the list etc...
  • 15. “But Python is boring. I want to make games in Scratch” You can make games in Python.
 You could remake the entire Scratch interface using Python if you really wanted to.
 Here are some examples of some games that utilise the PyGame library. But you need to build up your skill level and master the basics before you attempt large projects.
  • 16. What else is Python used for? Python is actually not used that often for making games as it has many "resource intensive" features. When used correctly, you will rarely run into limitations with these features and they will in fact speed up how long it takes you to write code!
 Python is often used for data analytics in the STEM community although this definitely not the only use for Python.. Some common packages used by these communities include NumPy, SciPy and Matplotlib but there are MANY MORE...
 You can write your own library and share with the community... This is why we use Python, it is highly extensible and has a massive user base. It is a good general purpose programming language to learn!
  • 17. Some famous services that utilise Python in their code base
  • 18. TIOBE index for various programming languages in August 2017
  • 19. Emily De La Peña Founder of Coding Kids, Advance Queensland’s Community Digital Champion codingkids.com.au facebook.com/codingkidstutoring @EmilyFdelaPena & @coding_kids linkedin.com/in/emilydelapena/ @emily.f.delapena