0
Code Coach (No Numerals)
Why this code not working as expected? https://code.sololearn.com/csHgaCsiRoHu/?ref=app
6 Answers
+ 3
replace method returns a copy of the string but it doesn't change it.
inp = inp.replace(n,alp[int(n)])
As HonFu said 10 needs to come first in your num list if you want to get 'ten' instead of 'onezero'.
+ 6
Ten missing. Also ten needs to come first.
+ 4
You forgot the number 10
+ 3
Ah, sorry, missed that part! đ
+ 1
Kevin Star Oh Thank you so much , it just return the value as i replace it but didn't store them in variable.Beside that, the 10 issue , by the way , thank you so much