Python programming basics
Year 8 · Secondary School · Computing
In this unit you will: use print, variables and the main Python data types; use input() and arithmetic operators correctly; write and trace if, elif and else statements; use for and while loops and trace how many times they repeat; use lists and string functions and find common errors.
There are 50 exercises to practice: interaktive Aufgaben. Every answer gets instant feedback, free and without signing up.
What's included
- Use print · variables and the main Python data types
- Use input() and arithmetic operators correctly
- Write and trace if · elif and else statements
- Use for and while loops and trace how many times they repeat
- Use lists and string functions and find common errors
Example questions
- Which line correctly displays Hello on the screen in Python?
- True or false? “In Python, = checks whether two values are equal.”
- After score = 10 and then score = 15, what is stored in score?