] Draw a flowchart and construct a python program to read the three subject’s marks secured by n students during FAT examination. If a student secured less than 50 in any subject, the student is failed in that subject. Count the number of students who failed in each subject and the total number of students who failed in at least one subject. [
n = int(input('Enter the number of class: '))
intList = []
for i in range(1, n + 1):
value = int(input("Enter the score from 0 to 100: "))
intList.append(value)
i = value
pass_student = 0
fail_student = 0
if i >= 50:
pass_student = pass_student + 1
elif i < 50:
fail_student = fail_student + 1
print('The Total Passed Student: ', pass_student)
print('The Total Failed Student: ', fail_student)
#Average
average = value / n
print('The Average is: ', average)
Comments
Leave a comment