Python Program to find Total Average and Percentage of Five Subjects

Write a Python program to find Total Average and Percentage of Five Subjects with an example.

Python Program to find Total Average and Percentage of Five Subjects Example

This python program allows users to enter five different marks for five subjects. Next, Python finds the Total, average, and Percentage of those Five Subjects. For this python program, we are using the Arithmetic Operators to perform arithmetic operations.

# Python Program to find Total, Average, and Percentage of Five Subjects
 
english = float(input("Please enter English Marks: "))
math = float(input("Please enter Math score: "))
computers = float(input("Please enter Computer Marks: "))
physics = float(input("Please enter Physics Marks: "))
chemistry = float(input("Please enter Chemistry Marks: "))

total = english + math + computers + physics + chemistry
average = total / 5
percentage = (total / 500) * 100

print("\nTotal Marks = %.2f"  %total)
print("Average Marks = %.2f"  %average)
print("Marks Percentage = %.2f"  %percentage)
Python Program to find Total Average and Percentage of Five Subjects 1