I made this program for (no numeral ) challenge in code coach but the but the result is wrong for the third case which is locked | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I made this program for (no numeral ) challenge in code coach but the but the result is wrong for the third case which is locked

https://code.sololearn.com/cL2W91VWKPUx/?ref=app Help me find the issue Since the case is locked I don't know how to fix the bug!!!

15th Jun 2020, 1:29 PM
Abhijit
Abhijit - avatar
7 Answers
+ 2
Imagine input 10 will result in onezero and not in ten... Moreover 57 would result in fiveseven, alhough it is bigger than 10
15th Jun 2020, 1:35 PM
Alexander Thiem
Alexander Thiem - avatar
+ 2
update your code
15th Jun 2020, 1:55 PM
Alexander Thiem
Alexander Thiem - avatar
+ 2
https://code.sololearn.com/cBXc9swhrOVO/?ref=app You can use dictionaries also for the solution
15th Jun 2020, 4:00 PM
Shubhank Gupta
Shubhank Gupta - avatar
+ 2
Although I like your aproach of using lists because they are much less complicated ✌️
15th Jun 2020, 4:04 PM
Shubhank Gupta
Shubhank Gupta - avatar
+ 2
Actually even I used dict before but it was showing index error which I didn't try to figure out then turned to list
15th Jun 2020, 4:30 PM
Abhijit
Abhijit - avatar
+ 2
In the 13th line , why is i+2 required ? It is showing error When I removed the 'i+2' , it was working fine ✌️
15th Jun 2020, 4:35 PM
Shubhank Gupta
Shubhank Gupta - avatar
+ 1
There are some other bugs also coz case 3 is still wrong
15th Jun 2020, 1:49 PM
Abhijit
Abhijit - avatar