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

Conditional Statements Supplemental

Extra practice · if · if-else · if-elif-else · 20 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 20 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, conditions, and indentation1 to 55
2if-else statements: complete, place, and fix if-else code6 to 105
3if-elif-else statements: build chains in the right order11 to 155
4Predict the output and the error message16 to 205
Total (1 point per item)2020

Student Information

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