#program to assign a grade depending on the mark def assignGrade(mark): if mark>=80: grade = "Distinction" elif mark>=65: grade = "Merit" elif mark >= 50: grade = "Pass" else: grade = "Fail" return grade #main program name = input("Please enter student name: ") studentMark = int(input("Please enter mark ")) studentGrade = assignGrade(studentMark) print(name,studentGrade)