Guest User

Untitled

a guest
Mar 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class Invoice:
  2. def __init__(self, client, total):
  3. self.client = client
  4. self.total = total
  5.  
  6. def formatter(self):
  7. return f'{self.client} owes: ${self.total}'
  8.  
  9.  
  10. google = Invoice('Google', 100)
  11. snapchat = Invoice('SnapChat', 200)
  12.  
  13. print(google.formatter())
  14. print(snapchat.formatter())
Add Comment
Please, Sign In to add comment