maths_marks = input("Enter your marks of Maths : " ) eng_marks = input("Enter your marks of English : ") hindi_marks = input("Enter your marks of Hindi : ") sst_marks = input("Enter your marks of Sst : ") science_marks = input("Enter your Science marks : ") percent = (int(maths_marks)+ int(eng_marks) + int(hindi_marks) + int(sst_marks) + int(science_marks))/500*100 if(percent = 91 and percent = 81 and percent = 71 and percent = 33 and percent < 71) : print("Passed got an 'D'") elif(percent < 33 ) : print("Failed") else : print("Invalid Input")
This seems line a homework assignment