As I'm not spotting the obvious things today.
there is no need to assign the list to a variable and then return it , you can return it directly
there is no need to assign the list to a variable and then return it , you can return it directly
def student(): last_name = getLastname() first_name = getFirstname() gr, g = computeGrade() return [last_name, first_name, gr, g]