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

Languages for robots

Week 26 · Unit 11: Autonomous robots · 3 lessons
Answers are for parents and teachers.
1
Write three differences between block-based and text-based languages.
2
Find the two errors in the program and write the correct lines.
Python
1print("Start)
2prnt("End")
3
Write Python that matches these blocks and say what it prints.
setato1changeaby4repeat3sayafor2seconds
4
What does this program print?
Python
1n = 20
2for i in range(3):
3    n = n - 5
4print(n)
5
(if you have a computer or tablet) With an adult, type one print line in a Python tool and run it. Then make one deliberate mistake and read the error message.