#try to avoid input function a = int(input("Enter Number of Classes held : ")) b = int(input("Enter Number of Classes attended : ")) c = input("Medical Issues : ") d = (b/a)*100 ## for calculating percentage. if c == "Yes" or c == "yes" or c == "s": if d >= 65: print("You are allowed.") else: print("You are not allowed.") elif d >= 75: print("You are allowed.") else: print("You are not allowed.")
Click the run button. Try to avoid input() function.