Professional Documents
Culture Documents
Python 1
Python 1
-----------------------------------------------------------------------------------
--------------------
class Movie():
def __init__(self, m_name, no_tick, total):
self.m_name = m_name
self.no_tick = no_tick
self.total = total
def __str__(self):
return "Movie : " + self.m_name + "\nNumber of Tickets : " +
str(self.no_tick) + "\nTotal Cost : " + str(self.total)