0

Hi y all ,im struggling to get the hidden test on the problem where i should eliminate the numerics to word plz help me

User should put numbers from 0-10 ,in my program I'm struggling to accommodate 10 ,since it says onezero in my output,how can I fix this plz help https://www.sololearn.com/post/368653/?ref=app

1st May 2020, 6:12 AM
Mr database
Mr database - avatar
5 odpowiedzi
+ 1
Post your code so we can see what the issue is.
1st May 2020, 6:14 AM
ChaoticDawg
ChaoticDawg - avatar
1st May 2020, 6:49 AM
Mr database
Mr database - avatar
+ 1
Try split() your input into words. Add the item "10": "ten" to your dictionary. Then loop over the words and do your isdigit comparison. You may also need to make sure that the int() value of the word is less than 11 or not greater than 10.
1st May 2020, 6:57 AM
ChaoticDawg
ChaoticDawg - avatar
1st May 2020, 6:41 AM
Mr database
Mr database - avatar
0
Sorry I was struggling to post this
1st May 2020, 6:42 AM
Mr database
Mr database - avatar