Given the following class code that you should assume will c…

Given the following class code that you should assume will correctly execute (ignore any minor syntax errors): class Ticket (object):       def __init__ (self, name, event, serialNo):                 self.cust_name = name                 self.event = event self.serialNumber = serialNo         def __str__ (self):               return (‘Ticket for ‘ + self.cust_name + ‘ – ‘ + self.event) # global code ———————————————-t1 = Ticket (‘Molly Smith’, ‘Concert’, ‘a250’)t2 = Ticket (‘Tom Brady’, ‘Bucs Game’, ‘NFL0100’)t3 = Ticket (‘Mike Rizzo’, ‘Nats Game’, ‘WS2023’)t4 = Ticket (‘E. Musk’, ‘SpaceX Launch’,’NASA2021′)t5 = Ticket (‘K. Ball’, ‘GMU Basketball’,’Pats11293′)t6 = Ticket (‘A. Trebek’, ‘Jeopardy Audience’,’Historyfor1000′)t2.event = t5.eventt6.event = t2.eventWhat is the display output of print (t6) ?

View the following class definition, then answer the questio…

View the following class definition, then answer the question that follows. class Date ( ):         def __init__ (self, month, day, descr):                 self.month = month                 self. day = day                self.descr = descr         def __str__ (self):                 return str(self.month) + ‘/’ + str(self.day) + ‘/’ + str(self.year) + ‘ – ‘ + self.descr What changes should be done to the above code so that its objects include a year as an attribute?  Check all that must be done.  

View the following class definition, then answer the questio…

View the following class definition, then answer the question that follows. class Date ( ):       def __init__ (self, month, day, year, descr):                 self.month = month                 self. day = day self.year = year                self.descr = descr         def __str__ (self):                 return str(self.month) + ‘/’ + str(self.day) + ‘/’ + str(self.year) + ‘ – ‘ + self.descrd1 = Date(’08’, ’26’, ‘2024’, ‘Start of semester’) Which of the following will reset the year of the above object to 2025? 

View the following class definition, then answer the questio…

View the following class definition, then answer the question that follows. class Date ( ):       def __init__ (self, day, month, year, descr):                 self.month = month                 self. day = day self.year = year                self.descr = descr         def __str__ (self):                 return str(self.month) + ‘/’ + str(self.day) + ‘/’ + str(self.year) + ‘ – ‘ + self.descrd1 = Date(’01’, ’04’, ‘2025’, ‘Important date’)print(d1) What is the display output of the above code? 

Assume that we have defined a class called House that has at…

Assume that we have defined a class called House that has attributes of owner’s name, address, number of bedrooms, and number of baths. The attribute names in the class definition are name, address, numBRs and numBAs. numBRs and numBAs are integers. The other attributes are strings (characters). What code must we add to the definition if we want to add an additional attribute lotSize and assign it to a House object when that object is instantiated? lotSize is an integer and is the name used inside the class definition. Check all the code that must be added.