Code coach: one test case failed,Need advice(solved) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th Jan 2020, 2:26 PM
Hanmanth Pattem
Hanmanth Pattem - avatar
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.
13th Jan 2020, 2:36 PM
Lothar
Lothar - avatar
+ 1
Thanks for help , I made it.!!
13th Jan 2020, 5:43 PM
Hanmanth Pattem
Hanmanth Pattem - avatar