How do I convert the str to int without an error
def grading(): if student_score <40: print("Grade: F") elif student_score <46: print("Grade: E") elif student_score <50: print("Grade: D") elif student_score <60: print("Grade: C") elif student_score <70: print("Grade: B") elif student_score >70: print("Grade: A") student_score=int(input("Enter the student score or enter to exist")) total_score=0 number_of_students=0 grading() while student_score != "": total_score+= student_score number_of_students+=1 student_score=int(input("Enter the student_score or enter to exist")) grading () print("number of students =",number_of_students) average= total_score / number_of_students print("Average=",average)