Computer Science, asked by aparna040706, 1 month ago

Create a python program to input the scores of three subjects (physics, chemistry and maths) and

calculate the total and average marks scored.​

Answers

Answered by MrTSR
0

Answer

Below is your Python program

physics = float(input("Enter physics Marks: "))

chemistry = float(input("Enter chemistry Marks: "))

math = float(input("Enter math Marks: "))

total = physics + chemistry + math

average = total / 3

percentage = (total / 300) * 100

print("\nTotal Marks = %.2f"  %total)

print("Average Marks = %.2f"  %average)

Example Output

Enter physics Marks: 70

Enter chemistry Marks: 81

Enter math Marks: 77

Total Marks: 228.00

Average Marks: 76.00

>Refer the attatchment for the Example :)<

Attachments:
Similar questions