Created
March 21, 2020 20:08
-
-
Save ychennay/48af45037af226efffec7cf60e6054eb to your computer and use it in GitHub Desktop.
This file contains 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
if __name__ == "__main__": | |
student = Person() | |
studentB = Person() | |
print(student.name) # Default Name | |
print(studentB.name) # Default Name | |
studentB.name = "Changed Name!!!" | |
print(studentB.name) # "Changed Name!!!" | |
print(student.name) # "Changed Name!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment