def append_elem_to_list(a_list, an_elem): a_list.append(an_elem) return a_list
Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Fix the Append Operation
The function provided is broken. Your job is to figure out what's going on and fix it.
Use the tests to guide you.
test - Run Test
def test_append(): list_1 =  append_elem_to_list(list_1, 'X') assert list_1 == ['X'] list_2 = [3, 2, 1] append_elem_to_list(list_2, 9) assert list_2 == [3, 2, 1, 9]