What day is it?

Report a typo

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.

Sample Input 1:

2020-04-30

Sample Output 1:

2020
04
30
Write a program in Python 3





___

Create a free account to access the full topic