Answer to Question #229589 in Python for Aashish

Question #229589

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 based on the following criteria:Sum of marks in any two subjects >= 100 and M + P + C >= 180.


1
Expert's answer
2021-08-25T17:27:09-0400
M = int(input())
P = int(input())
C = int(input())

MP = M + P
MC = M + C
PC = P + C

if(((MP>=100) or (MC>=100) or (PC>=100)) and (M+P+C>=180)):
    print('True')
else:
    print('False')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS