How can I get the list of available country? #738
-
When I am using the holiday package, sometimes I faced the error that the country is not supported. How can I get the list of the available country so that I can handle this exception? |
Beta Was this translation helpful? Give feedback.
Answered by
arkid15r
Oct 12, 2022
Replies: 1 comment 2 replies
-
You can use https://python-holidays.readthedocs.io/en/latest/api.html#holidays.utils.list_supported_countries to get the supported countries list. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
dr-prodigy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use https://python-holidays.readthedocs.io/en/latest/api.html#holidays.utils.list_supported_countries to get the supported countries list.