LearnPy Hub
← Modules & the Standard Library problems
Easy

Year, Month, Day

Read a date as YYYY-MM-DD, turn it into a date with date.fromisoformat() and print its year, month and day on separate lines.

Input

One date.

Output

Three lines.

Sample 1

Input
2026-03-26
Output
2026
3
26

Sample 2

Input
2000-01-01
Output
2000
1
1
solution.py
Output appears here
Year, Month, Day · Python practice problem · LearnPy Hub