30th Jan 2021, 5:36 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 Antwort
+ 4
your code fails for number 10 if I'm not wrong! try running with this input "i have 10 apples and 3 bananas!" your code is displaying "onezero" instead of "ten", why? because you are checking characters by characters, one quick fix is first split the input into list and then follow your algorithms but instead of replace direct print them
30th Jan 2021, 5:54 PM
minirkk
minirkk - avatar