Skip to content

Instantly share code, notes, and snippets.

@imteekay
Last active September 8, 2018 17:38
Show Gist options
  • Save imteekay/668568afcad2b59c2432aea78e651b61 to your computer and use it in GitHub Desktop.
Save imteekay/668568afcad2b59c2432aea78e651b61 to your computer and use it in GitHub Desktop.
class Person:
def __init__(self, first_name, email):
self.first_name = first_name
self._email = email
def update_email(self, new_email):
self._email = new_email
def email(self):
return self._email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment