Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
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.")