+ 2
Find error in the code
Problem: https://www.sololearn.com/coach/64?ref=app Solution code: https://code.sololearn.com/ceY0cQe219Hs/?ref=app I can't find error in the code, it gives correct output for all the strings.
11 Réponses
+ 6
Aanisa Ali , the fix suggested by Jayakrishna🇮🇳 works as intended👇
https://code.sololearn.com/ckw0N9rdwh3x/?ref=app
+ 11
It is not converting 10 to "ten"
+ 8
That's for characters in the input. For conversion the question strictly says " but you decide that for numbers 10 and under you would rather write the word out instead. "
+ 2
Well it is asking for ten numbers(0-9), that doesn't include 10... Arsenic
+ 2
The problem includes input from 0 to 10 inclusive. So you it need case 10 also..
(Add key "10" before 0,1)
Edit :what not working? Can you post update code?Aanisa Ali
+ 2
Iam not find update in code..
Add "10":"ten" to dictionary as a first value as code given by @Arsenic . It works..
Edit : fine. your welcome @Aanisa Ali
+ 1
Not working Jayakrishna🇮🇳
+ 1
It passes 5 tests out of 6 but when I include 10 it passes only 2 tests, can u check it. Jayakrishna🇮🇳
+ 1
Thanku 😇Arsenic Jayakrishna🇮🇳
+ 1
¿Alguien me puede explicar el error?
0
That's for characters in the input. For conversion the question strictly says " but you decide that for numbers 10 and under you would rather write the word out instead. "