Skip to content

Commit 49b3dba

Browse files
committed
move function inside class
1 parent 0a3bae2 commit 49b3dba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dataclass_person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Person:
77
date_of_birth: date
88
preferred_operating_system: str
99

10-
def is_adult(self):
10+
def is_adult(self):
1111
today = date.today()
1212
birth_date= self.date_of_birth
1313
#Calculate exact age by subtracting years

0 commit comments

Comments
 (0)