Skip to content
PlayOwl

Coding · Grade 6

Python Foundations: Values and Expressions

Learners meet Python's four basic types (int, float, str and bool), evaluate arithmetic expressions with the order of operations, floor division and remainder, and join and repeat strings. They practise predicting the exact output of print statements, the skill that every later trace depends on.

  • 4 lessons
  • About 75 minutes
  • Check what you learned: 8 questions
  • Ways to answer: fill in the blanks, choose an answer, put code in order, trace code, match pairs and type a number
Try it now (no account) One of the five free starter courses Open in PlayOwl

What learners will discover

  • Identify the type of a Python value (int, float, str or bool) and explain how quotation marks and decimal points decide it.
  • Evaluate arithmetic expressions using +, -, *, /, //, % and ** with the correct order of operations.
  • Join and repeat strings, find their length, and fix a TypeError caused by mixing text and numbers.
  • Predict the exact output of print statements that combine text and expressions.

Lessons

  1. Values and their types 6 steps3 practiceabout 18 min
  2. Arithmetic expressions 7 steps4 practiceabout 22 min
  3. Working with text 6 steps4 practiceabout 18 min
  4. Predicting exact output 6 steps3 practiceabout 17 min
  5. Check what you learned 8 questions at the end

Keep exploring

Games to practice with

More 6th grade coding

Guide for grown-ups