Permission to attempt exam
If student attendence is greater than 75 prints "allowed to write exam".attendence is less than 75 and takes medical report if medical report is "Y" then "allowed to write exam".else cannot write exam.
x=input()
m=input()
a=""
for i in str(x):
if(i.isalnum()):
a+=i
if(int(a)>=75):
print("Allowed to write exam")
elif(int(a)<75 and m=="Y"):
print("Allowed to write exam")
else:
print("Cannot write exam")
Comments
Post a Comment