which of the following is used to get named entries into tuple in python
Answers
Answered by
0
Answer:
To create a named tuple, import the namedtuple class from the collections module. The constructor takes the name of the named tuple (which is what type() will report), and a string containing the fields names, separated by whitespace
Answered by
0
Answer:
To create a named tuple, import the namedtuple class from the collections module. The constructor takes the name of the named tuple (which is what type() will report), and a string containing the fields names, separated by whitespace. It returns a new namedtuple class for the specified fields.
Explanation:
hope it's helpful
Similar questions