+ 1
How to solve this index error?
It is a program which converts the input given by you to number. It works by taking your words and comparing it in the dictionary. This program works fine with simply numbers like two hundred or seventy. But reaching complex numbers like two hundred thirty it collapses! Try giving input as three hundred forty five! https://code.sololearn.com/cgWdAh3360sX/?ref=app
6 odpowiedzi
+ 3
line 7, try len(l)-1
+ 2
What's the input and expected output? I ran your code and didn't get any errors.
+ 2
-1 in Len(l)
...range Len((l)-1)
+ 1
Can you tell at what input it's showing error!
+ 1
Hacker Badshah try giving three hundred twenty three
Olivia try entering "three hundred forty six"..
I hope you found the error
+ 1
Remember to give in words it outputs number for it!