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
1 Resposta
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.