What are the two ways to to add something in a list? How are they different?

We can add new item in a list by following methods
– append()
– extend()
append() add its argument as single item to the end of list and extend() adds multiple items given in argument to the list.

error: Content is protected !!