Question: Question 2 Given the following class code that you should assume will correctly execute ( ignore any minor synt class Ticket ( object ) :
Question
Given the following class code that you should assume will correctly execute ignore any minor synt
class Ticket object:
definitself name, event, serialNo:
self.custname name
self.event event
self.serialNumber serialNo
defstrself:
return Tick for self.custname self.event
# global cod
t Ticket Molly Smith', 'Concert', a
t Ticket Tom Brady', 'Bucs Game', NFL
t Ticket Mike Rizzo', 'Nats Game', WS
t Ticket E Musk', 'SpaceX Launch','NASA
t Ticket K Ball', 'GMU Basketball','Pats
t Ticket A Trebek', 'Jeopardy Audience','Historyfor
What is the display output of
print t
Tick# WS Mike Rizzo Nats Game
Tick for Tom Brady Bucs Game
Tick for Mike Rizzo WS
Tick for WS Mike Rizzo Nats Game
None of the listed answers is correct
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
