+ 1
Code coach: one test case failed,Need advice(solved)
i have writen code for no numerals in code coach.all test case are ok exept test case no.3. did i make mistake ?let me know https://code.sololearn.com/cG7Zq53o5kFs/?ref=app
2 Answers
+ 6
if i take your code and give an input of:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
the result is:
zero one two three four five six seven eight nine onezero oneone onetwo onethree onefour
The reason is that you take the input as a string and iterate over it. So you pick each single character (digit)to check insted of doing check with the numbers.
The input should be converted to a list, which you should iterate over.
+ 1
Thanks for help , I made it.!!