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
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
Comments
Leave a comment