Answer to Question #219142 in Python for Hari nadh babu

Question #219142

Eligibility Criteria - 2


This Program name is Eligibility Criteria - 2. Write a Python program to Eligibility Criteria - 2, it has two test cases


The below link contains Eligibility Criteria - 2 question, explanation and test cases


https://drive.google.com/file/d/1xObf_3zdyEfD8yEtB5V4OqL6HVzEd7h1/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-07-25T21:57:22-0400
M = int(input('Enter score in maths here:'))
P = int(input('Enter score in physics here:'))
C = int(input('Enter score in chemistry here:'))
list1 = [M,P,C]
list2 = []
for i in list1:
    list1.remove(i)
    for j in list1:
        if i + j >= 100 and M + P + C >= 180:
            list2.append(True)
        else:
            list2.append(False)
if False in list2:
    print(False)
else:
    print(True)

Enter score in maths here:82
Enter score in physics here:55
Enter score in chemistry here:45
True   

Enter score in maths here:71
Enter score in physics here:30
Enter score in chemistry here:70
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