What is the difference between extend() function and append() function?
Answer:
extend( ) method |
append( ) method |
It is an in-built list method which can add multiple individual elements to the end of a list. |
It is an in-built list method which adds a single element to the end of a list. |
Get live Maths 1-on-1 Classs - Class 6 to 12