← back to unit
Medium
# loops
Count the Even Squads
An army is organized into squads, each with a number of soldiers. Count how many squads have an even number of soldiers. 🪖
You're given a list of squad sizes (already split into numbers for you). Print how many are even.
💡 need a hint?
loop-how-many-evens.py🔒 given lines are locked — write your code in between
loading...