[SOLVED] no numericals challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
30th Jan 2021, 5:36 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 Answer
+ 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
Rohit