Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 31)
31.
What is the purpose of the tuple() constructor?
Creates an empty tuple.
Converts a list to a tuple.
Converts a string to a tuple.
All of the above.
Answer: Option
Explanation:
The tuple() constructor can be used for various purposes, including creating an empty tuple and converting other data types to tuples.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.