Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 19)
19.
What is the purpose of the list() constructor in Python?
Creates an empty list.
Converts a tuple to a list.
Converts a string to a list.
All of the above.
Answer: Option
Explanation:
The list() constructor in Python can be used to create an empty list, convert a tuple to a list, and convert a string to a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.