South Plantation High School logo
South Plantation High School · Procedural Programming with Python

Conditional Statements Practice

if · if-else · if-elif-else · 30 practice items

Instructions

The information on this page is not stored. If you start an assignment, you must finish it. This page does not save your progress.

Quick review

if: maybe run the body
if score >= 70:
    print("Pass")
if-else: one of two
if score >= 70:
    print("Pass")
else:
    print("Try again")
if-elif-else: one of many
if score >= 90:
    print("A")
elif score >= 80:
    print("B")
else:
    print("Keep going")

Error messages you may see in the terminal

How this works

  1. Enter your first name, last name initial, and class period, then click Start Assignment. Your start time is recorded.
  2. The assignment opens in a Python editor with four files (tabs). Each orange numbered box or drop down is one practice item. There are 30 items.
  3. Click ▶ Run on any part to see what Python prints. On Parts 1 to 3, compare it with the expected output. On Part 4, Run shows what each small program prints, so you can check your predictions. Run does not grade you, so check your work carefully.
  4. When you finish all four tabs, click Submit for Score. Your end time is recorded and your score appears. Answers cannot be changed after submitting.
PartTaskItemsPoints
1if statements: keywords, operators, colons, conditions, and indentation1 to 88
2if-else statements: complete, place, and fix if-else code9 to 157
3if-elif-else statements: build chains in the right order16 to 238
4Predict the output and the error message24 to 307
Total (1 point per item)3030

Student Information

Reminder: nothing on this page is saved. Once you click Start Assignment, plan to finish before you leave or refresh the page.