EN
🇺🇸 US

Write it · William Carter – ModernScholar Team · ✔ checked content

🇺🇸 Computer science · Grade 9 › Introduction to programming

Grade 9 Computer Science: Python Expressions – Type the Result

Work out what each Python expression evaluates to and type the result.

🏆 Leaderboard

  1. No scores yet – be the first!

Report a problem with this activity

Share

Questions in this game (11 items)

  1. 7 % 3
  2. 17 % 5
  3. 7 // 2
  4. 2 ** 4
  5. 10 / 4
  6. "ab" + "cd"
  7. "ha" * 3
  8. len("python")
  9. int("5") + 2
  10. 3 > 2 and 1 > 5
  11. not (4 == 4)
Show answers
  1. 7 % 3 → 1
  2. 17 % 5 → 2
  3. 7 // 2 → 3
  4. 2 ** 4 → 16
  5. 10 / 4 → 2.5
  6. "ab" + "cd" → abcd
  7. "ha" * 3 → hahaha
  8. len("python") → 6
  9. int("5") + 2 → 7
  10. 3 > 2 and 1 > 5 → False
  11. not (4 == 4) → False

👩‍🏫 For teachers

Level
11–14 years
Subject
Computer science
Questions
11
Time
about 2 min
Last updated

How to use it: A quick starter or exit ticket: project it and let the class answer together, or set it as homework to see who needs more help.

🇺🇸 More Computer Science games – Grades 6–8 →

✔ How we check our games →

Similar activities

It's free – just create an account

Create a free account