0

How do replace word numbers to digit but I don't have an idea

"one" : 1, "two": 2, "hundred" If I try two hundred Return 200

30th Aug 2021, 4:52 PM
Baxtishod Davronov
Baxtishod Davronov - avatar
3 Answers
+ 1
Maybe it works, ... "one hundred" : 100, "two hundred" : 200, ...
30th Aug 2021, 4:56 PM
mesarthim
mesarthim - avatar
+ 1
That seems like a tough question, you'll probably need to define a dictionary for every possible word which is very tedious, I wonder if there's an efficient way to this
30th Aug 2021, 6:45 PM
Tim
Tim - avatar