Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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