Fill in the blank
# a lightweight immutable record
from typing import NamedTuple
class P(____):
x: int
Answer: NamedTuple
Subclassing NamedTuple gives a small immutable class with named fields.
Play Problem Solving ▸
# a lightweight immutable record
from typing import NamedTuple
class P(____):
x: int
Answer: NamedTuple