Using, Namedtuples, Data, Immutable, Structures.
tuple 'Point' with fields 'x' and 'y' Point = namedtuple('Point', ['x', 'y']) # Create an instance of the Point namedtuple p1 = Point(3, 4) # Access the fields of the namedtuple print(p1.x, p1.y) # Output: 3 4 In the above code snippet, we defined a named tuple ‘Point’ with fields ‘x’ and ‘y’. We