Answers for "python namedtuple typename"

0

python namedtuple typename

It gives a "type" attribute to your named tuple.
Point=namedtuple('whatsmypurpose',['x','y'], verbose=True)
>>>type(Point)
"whatsmypurpose"
Posted by: Guest on October-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language