Unit 2 Task 21: Weekly step average

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

Unit 2 Task 21 - Weekly step average

← Unit 2 tasks · Solution


A fitness tracker shows steps for each day of the week. Ask for 7 positive integers (one per day). Print the average steps per day (a float is fine).

Use a for loop to read the seven values.

Skills: for, range(7), sum and divide.