Skip to content

Commit 004e082

Browse files
committed
Update seasons.py
1 parent 0b93a97 commit 004e082

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

week-8/seasons/seasons.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def is_valid_birth_date(birth_date: str) -> bool:
4646
"""
4747

4848
try:
49-
return date.fromisoformat(birth_date)
49+
d = date.fromisoformat(birth_date)
50+
return [d.year, d.month, d.day]
5051
except ValueError:
5152
return False
5253

0 commit comments

Comments
 (0)