Write a program to input marks in three subjects and calculate the average. Display 'Good performance' if average is 75 and above and ' Work harder if average is below 75. this is python question
Answers
Answered by
1
Answer:
mark_1 = float(input("Enter your mark in 1st subject: "))
mark_2 = float(input("Enter your mark in 2nd subject: "))
mark_3 = float(input("Enter your mark in 3rd subject: "))
average = (mark_1+mark_2+mark_3)/3
print(f"Your average is {average:.2f}")
if average >= 75:
print("Good Performance")
else:
print("Work Harder")
Similar questions
Math,
1 day ago
India Languages,
1 day ago
Math,
1 day ago
Sociology,
1 day ago
Computer Science,
8 months ago
Science,
8 months ago
Accountancy,
8 months ago