write a program in python to enter the mark in 3 subjects and calculate total and assign grade. If total >= 200 grade is 'A' otherwise grade is 'B'
Answers
Answered by
12
Explanation:
Hi friend,
Here is your code
sub1=int(input("Enter marks of the first subject: "))
sub2=int(input("Enter marks of the second subject: "))
sub3=int(input("Enter marks of the third subject: "))
avg=(sub1+sub2+sub3)/3
if(avg>=200):
print("Grade: A")
elif(avg>=150&avg<190):
print("Grade: B")
elif(avg>=30&avg<140):
print("Grade: C")
Hope this will help you
please try to mark it as brainliest.....
It took a lot of time for me to write....
Answered by
1
Answer:
Here you go
Explanation:
This is Simple
Attachments:
Similar questions
English,
4 months ago
Environmental Sciences,
4 months ago
English,
8 months ago
Science,
1 year ago
Biology,
1 year ago