Created
November 13, 2023 11:01
-
-
Save TheHimanshuRastogi/0bd6b3f96884f2efa07490982eabf8a1 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 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