Unit 2 Task 8 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 8: Odd or even order total

← Back to task


One possible program:

item_count = int(input("Number of items: "))

if item_count % 2 == 0:
    print("Even - boxes pack evenly.")
else:
    print("Odd - one item left over.")