0

What am I doing wrong? Code coach problem: https://www.sololearn.com/coach/64?ref=app.

My code is given below https://code.sololearn.com/c9QBU23An5ah/?ref=app

5th Apr 2020, 7:55 AM
Aditi Mishra
Aditi Mishra - avatar
1 Odpowiedź
0
what you have done will replace '1' by 'one' even in '10'. so, before reaching replace('10', 'ten') alls the digits of '10' already been replaced by their equivalent word. I think you must replace '10' by 'ten' before others.
5th Apr 2020, 8:23 AM
John Robotane
John Robotane - avatar