I'm trying to write A dataclass for my python program , My idea was to use the dataclass as the full database , But I do not know how to access the variable from a dataclass.
I'd be glad if Someone would be able to point me in the right direction.
@dataclass
class database:
"""The whole program database that holds all the variables"""
def birth_database():
birthdate_add_pass : str = None
birth_day : int = None
birth_month : int = None
birth_year : int = None
full_birth_date : str = f"{birth_day}/{birth_month}/{birth_year}"
confirm_birthday : str = None
confirm_birthmonth : str = None
confirm_birthyear : str = None
confirm_full_birthdate : str = None
user_birthdate = database.birth_database.birth_day