3 Answers
New AnswerPython list changes
10/19/2021 7:12:32 PM
Pius Motai3 Answers
New AnswerAppend: Adds its argument as a single element to the end of a list. Extend(): Iterates over its argument and adding each element to the list and extending the list
# You can see the difference in an example like this: x = [0] x.append([1, 2]) x.extend([3, 4]) print(x)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message