Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 48)
48.
What does the tuple() function do when given a list as an argument?
Creates a tuple containing the entire list as a single element.
Converts the list into a tuple.
Raises a TypeError since lists and tuples are incompatible.
Appends the list to an existing tuple.
Answer: Option
Explanation:
The tuple() function can be used to convert a list into a tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.