150. It stops with RecursionError instead.
class Ticket:
def price(self):
return 100
class Vip(Ticket):
def price(self):
return self.price() + 50
print(Vip().price())
Which one change makes it print 150?Log in to join the discussion.
Loading…