Skip to content

Instantly share code, notes, and snippets.

@TheHimanshuRastogi
Created November 13, 2023 11:01
Show Gist options
  • Save TheHimanshuRastogi/0bd6b3f96884f2efa07490982eabf8a1 to your computer and use it in GitHub Desktop.
Save TheHimanshuRastogi/0bd6b3f96884f2efa07490982eabf8a1 to your computer and use it in GitHub Desktop.
class Student:
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
def verify_registration_status(self):
status = self.get_status()
self.status_verified = status == "registered"
def get_guardian_name(self):
self.guardian = "Goodman"
def get_status(self):
# get the registration status from a database
status = query_database(self.first_name, self.last_name)
return status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment