We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3881d67 commit b6e824cCopy full SHA for b6e824c
python-class/employee.py
@@ -20,9 +20,7 @@ def compute_age(self):
20
today = datetime.today()
21
age = today.year - self.birth_date.year
22
birthday = datetime(
23
- today.year,
24
- self.birth_date.month,
25
- self.birth_date.day
+ today.year, self.birth_date.month, self.birth_date.day
26
)
27
if today < birthday:
28
age -= 1
0 commit comments