# Creating a Data Transfer Object (DTO)classDTO:def__init__(self, data1, data2): self.data1 = data1
self.data2 = data2
# Example of using the DTOdto_obj = DTO("value1", "value2")
# Accessing the data in the DTO objectprint(dto_obj.data1)
print(dto_obj.data2)