![]() |
Python holidays module |
Python holidays Module
In this post we can learn about the holidays module . its help to you determine on specific day
in holiday or not in countries
Install the Module In your project ,Type following command
>>> Pip install holidays
After successfully installing the holidays module ,get the holidays information .
Now we can try to get Holiday based on specific day
Example
# import the holidays module
import holidays
# specifies indian holidays
IndianHoliday = holidays.India()
# on this day Holiday
print(f"on this day:{IndianHoliday.get('15-08-2021')}")
Output
on this day : Independence Day