Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 61)
61.
What is the purpose of the collections.namedtuple() function?
Creating named tuples with named fields
Sorting elements in a list
Handling dates and times
Parsing JSON data
Answer: Option
Explanation:
The collections.namedtuple() function in Python is used to create named tuples with named fields.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.