1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """ Program Name: Calculate SGPA Description: Input total grade points and credits to calculate sgpa """ def calculate_sgpa(): total_grade_points = int(input("enter total grade points")) credits_score = int(input("enter total credits")) if(credits_score==0): print("false ,total credits can not be zero") else: print("your sgpa is ", total_grade_points/credits_score) calculate_sgpa() |