Thinkycap logo
Worksheets

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.

Practice nowPython programming basicsYear 8 · Secondary School · Computing · 50 exercisesPractice now

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

  1. Which line correctly displays Hello on the screen in Python?
  2. True or false? “In Python, = checks whether two values are equal.”
  3. After score = 10 and then score = 15, what is stored in score?

Solve these and more questions now →

More topics in Computing