Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created December 12, 2019 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/c76adafaf6ba9f07b4ab43d5c7257669 to your computer and use it in GitHub Desktop.
Save jasongorman/c76adafaf6ba9f07b4ab43d5c7257669 to your computer and use it in GitHub Desktop.
class Rental(object):
def __init__(self, customer, imdbID):
self.customer = customer
self.video = Pricer().price(imdbID)
def __str__(self):
return "Video Rental - customer: " + self.customer \
+ ". Video => title: " + self.video.title \
+ ", price: £" + str(self.video.price)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment