Given a student has scored
M marks in Maths, P marks in Physics and C marks in Chemistry. Write a program to check if a student is eligible for admission in a professional course. If any one of the below conditions is satisfied, then the student is eligible.1) M >= 70 and P >= 60 and C >= 60
2) M + P + C >= 180
The first line is an integer
The output should be a single line containing
True if it satisfies the given conditions, False in all other cases.
M = int(input())
P = int(input())
C = int(input())
print((M >= 70 and P >= 60 and C >= 60) or (M + P + C >= 180))
Comments
Leave a comment