Anyone got a shorter solution for this question? I've just learnt Python3 for 6 days. Appreciate your help.
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.
Why do you want a shorter solution? Did you pass all tests with your methods? (Mine is different, but not much shorter.)
I did it in 7 lines https://code.sololearn.com/c5VEJ3JNd6z6/?ref=app