Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 24)
24.
What is the purpose of the extend method in Python lists?
Adds a specified element to the list.
Extends the list by appending elements from an iterable.
Increases the length of the list.
Concatenates two lists.
Answer: Option
Explanation:
The extend() method in Python lists is used to extend the list by appending elements from an iterable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.