Skip to content

Commit 743e94d

Browse files
committed
Update seasons.py
1 parent 004e082 commit 743e94d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

week-8/seasons/seasons.py

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

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

0 commit comments

Comments
 (0)