EN
🇺🇸 US

Fill the gap · Ella Kurdaj – ModernScholar Team · ✔ checked content

🇺🇸 Computer science · Grade 9 › Introduction to programming

Grade 9 Computer Science: Python Control Structures Fill In the Gap

Choose the missing keyword or operator to complete each line of Python.

Report a problem with this activity

Share

Questions in this game (10 items)

  1. ___ score >= 90: starts a condition.
  2. After if, use ___ to check another condition.
  3. ___: runs when no earlier condition was true.
  4. for i in ___(5): repeats five times.
  5. ___ lives > 0: keeps repeating while the player has lives.
  6. Use ___ to leave a loop early.
  7. x ___ 5 checks whether x is not equal to 5.
  8. if age > 12 ___ age < 20: checks that both are true.
  9. name = ___("What is your name? ") asks the user to type.
  10. count ___ 1 adds 1 to count.
Show answers
  1. ___ score >= 90: starts a condition. → if
  2. After if, use ___ to check another condition. → elif
  3. ___: runs when no earlier condition was true. → else
  4. for i in ___(5): repeats five times. → range
  5. ___ lives > 0: keeps repeating while the player has lives. → while
  6. Use ___ to leave a loop early. → break
  7. x ___ 5 checks whether x is not equal to 5. → !=
  8. if age > 12 ___ age < 20: checks that both are true. → and
  9. name = ___("What is your name? ") asks the user to type. → input
  10. count ___ 1 adds 1 to count. → +=

👩‍🏫 For teachers

Level
11–14 years
Subject
Computer science
Questions
10
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