0
Anyone got a shorter solution for this question? I've just learnt Python3 for 6 days. Appreciate your help.
3 odpowiedzi
+ 2
Mine was 8 lines. I'm sure the Python experts code is smaller.
I split the input on spaces. If ended up with three elements, removed the comma from the day and replaced the month with the list index of the matching month name. If single element, split on slash into three. In both cases, print the numbers in new format.
+ 2
Why do you want a shorter solution? Did you pass all tests with your methods?
(Mine is different, but not much shorter.)
+ 1
I did it in 7 lines
https://code.sololearn.com/c5VEJ3JNd6z6/?ref=app