Question: what is the difference between extend and append in python?
Answer: Python append() method adds an element to a list, and the extend() method concatenates the first list with another list (or another iterable). ... Whereas extend() method iterates over its argument adding each element to the list, extending the list.