Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created December 12, 2019 11:43
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/df3e75537b08ab7bb0e9bc7cd92d6617 to your computer and use it in GitHub Desktop.
Save jasongorman/df3e75537b08ab7bb0e9bc7cd92d6617 to your computer and use it in GitHub Desktop.
class Rental(object):
def __init__(self, customer, imdbID):
self.customer = customer
self.video = Pricer(VideoInfo()).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