I am trying to find holidays' date with holidays package in python for many countries but, instead of writing one by one like this:
import holidays
for date in holidays.UnitedKingdom(years=2011).items():
print(str(date[0]))
for date in holidays.Argentina(years=2011).items():
print(str(date[0]))
I am trying to do this with a function like this:
for i in dir(holidays):
for j in range(2010,2016):
holidays.i(years=2011).keys()
I know that with loop every country's name is a string but I want to implement it as a loop, if you have any advice or suggestion please share with me. thank you.