You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromnum2wordsimportnum2wordsd='5'print(num2words(d, lang='fa')) # must print "پنج"
but it causes an error:
[/usr/local/lib/python3.10/dist-packages/num2words/__init__.py](https://localhost:8080/#) in num2words(number, ordinal, lang, to, **kwargs)
87
88 if isinstance(number, str):
---> 89 number = converter.str_to_number(number)
90
91 # backwards compatible
AttributeError: 'Num2Word_FA' object has no attribute 'str_to_number'
The text was updated successfully, but these errors were encountered:
code
but it causes an error:
The text was updated successfully, but these errors were encountered: