Question: You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variables your program

You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variables your program needs, and create them with appropriate initial values.

(Please use Python for begginners and I am learning)

We have learned For x in range

I have this code so if you could correct it with comments that would be awesome!

#define variables

n1 = 0

n2 = 0

n3 = 0

average_grade = (n1 + n2 + n3)/3

#Get 3 integer from user

n1 = int (input ("please enter first grade: "))

n2 = int (input ("please enter second grade: "))

n3 = int (input ("please enter third grade: "))

#Calculate Average

for x in (n1, n2,n3):

average_grade

#print result to user

print (average_grade)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!