Last active
March 9, 2018 00:34
-
-
Save jordanhudgens/4f42043f976d43f6c6bcbefb4d214732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Invoice: | |
def __init__(self, client, total): | |
self.client = client | |
self.total = total | |
def formatter(self): | |
return f'{self.client} owes: ${self.total}' | |
google = Invoice('Google', 100) | |
print(google.client) | |
google.client = 'Yahoo' | |
print(google.client) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment