Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 49)
49.
What is the purpose of the list.extend() method in Python?
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.