The append result
Take your time, follow the code and check your understanding.
The codeLists
values = [1, 2]
values = values.append(3)
print(values)Your answer3 min · no timer
Show solution and explanation
Call values.append(3) without assigning its result. It mutates the existing list and returns None.
append returns None, which replaces values.