Assignment 7 : Iteration

Description

Using the For loop and the While loop, create two programs that will help the user calculate the average for their quiz scores.

My Experience

The hardest part of this assignment was figuring out how to count in the for and while loops. For the for loop i used str(num + 1) , this way the number displayed will count upwards, starting from 1 instead of 0.

For the while loop, i created had to create a new variable called t that initially equaled 1. t would count up by one every loop while it was less than or equal to the number of quizzes. When t was greater than the number of quizzes, the loop would terminate.

Gallery of Screenshots

“For and While”