This tutorial will teach you Student Marks Calculation System Using python.Input student marks to calculating the total,grade. the grade is awared as “Pass” when the average is more than 50.otherwise grade is fail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | marks1 = int(input("Enter Your Marks 1 ")) marks2 = int(input("Enter Your Marks 2 ")) marks3 = int(input("Enter Your Marks 3 ")) tot = marks1 + marks2 + marks3 print(tot) avg = tot/3 print(avg) if(avg > 50 ) : print("Pass") else : print("Fail") |