Read a date from the input given in one of the following formats: YYYY-MM-DD or YYY-MM-DD. Print the year, month and day on separate lines.
Splitting strings and joining lists
What day is it?
Report a typo
Sample Input 1:
2020-04-30Sample Output 1:
2020
04
30Write a program in Python 3
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.