+ 1
I have already solved this in Python3 and if you want you can go check my code for better understanding. I ran into the same issue as yours: when you tipe in '10', it is going to give 'onezero' as output of course. Since only numbers between 0 and 10 are involved, check before starting subtituting if there is a 1 and then a 0 and substitute that unit with 'ten'.
9th Jun 2020, 9:56 AM
Daniele Compagnoni
Daniele Compagnoni - avatar