i solved the problemdef get_class_average(students): results = [] for items in students: result = get_average(items) # i had to make new variable different from results list to host the result # of the get_average function then use results.append(result) to pass it to the list results.append(result)