Created
March 13, 2018 03:58
-
-
Save jordanhudgens/84ed7b459559c337b16a10d19fe43f4c 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 Website: | |
title = 'My site title' | |
ws = Website() | |
ws.title = 'Updated title' | |
print(ws.__dict__) | |
class SecondWebsite: | |
def __init__(self, title): | |
self.title = title | |
second_ws = SecondWebsite('Another Title') | |
print(second_ws.__dict__) | |
class Website: | |
title = 'My site title' | |
print(Website.title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment