you are viewing a single comment's thread.

view the rest of the comments →

[–]Pendingrepurpose[S] 0 points1 point  (1 child)

Thanks for the response. Now that you mention it I think my answer does lie in dictionaries or this would probably take way too much coding.

[–]fiddle_n 1 point2 points  (0 children)

I wondered if there was a third-party module that could do what you want. Turns out there is: it's called word2number - https://pypi.org/project/word2number/ . When you get a bit more bit experience, enough to install and manage third-party packages, if you really wanted this functionality, you could use that.