#try to avoid input function a = int(input("Enter your subject1 marks :")) b = int(input("Enter your subject2 marks :")) c = int(input("Enter your subject3 marks :")) if a >= 15 and b >= 15 and c >= 15: if a+b+c >= 65: print("You got First class.") elif a+b+c > 55: print("You got Second class.") else: print("Your Passed.") else: print("Your Failed.")
Click the run button. Try to avoid input() function.