为什么没有定义“ namedtuple()”? [关闭]

I'm trying to follow the example of using namedtuple( ) in the documentation, but the Traceback says the name namedtuple is not defined. Why does it happen? Did I do it wrong?

Traceback