Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 63)
63.
What will the list.extend([7, 8, 9]) method do?
Adds a single element [7, 8, 9] to the list.
Adds individual elements 7, 8, 9 to the end of the list.
Merges the list with [7, 8, 9] creating a new list.
Inserts [7, 8, 9] at the beginning of the list.
Answer: Option
Explanation:
The extend() method adds individual elements from the iterable to the end of the list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.