AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Typing your first code

Week 1 · Unit 7.1: Block it out · 3 lessons
Answers are for parents and teachers.
1
Write three differences between Scratch and Python.
2
What does this program show? Write each line of output.
Python
1# Cafe sign
2print("Hot tea")
3print(12 + 6)
3
Write one line of Python that works out 6 packs of 12 eggs minus 5 broken eggs. What does the shell show?
4
Python stops before it shows anything. Find the mistake and write the correct line.
Python
1print("Fresh juice"))
Output
SyntaxError: unmatched ')'
5
Add a comment above each line to explain what it does. Then say why comments are useful.
Python
1print("Market stall")
2print(4 * 3)
3print("Open at 8")