class Movie:
def __init__(self,nameofmovie,nooftickets,totalcost):
self.nameofmovie=nameofmovie
self.nooftickets=nooftickets
self.totalcost=totalcost
def __str__(self):
return "Movie : "+str(self.nameofmovie)+"\n"+"Number of Tickets : "+str(self.nooftickets)+"\n"+"Total Cost : "+str(self.totalcost)
# Write your code here
if __name__ == '__main__':
Comments
Post a Comment