Planning Around Nigerian Holidays? Essential Info for Visitors!

0
33

Okay, so I was messing around with some data projects and needed to figure out the Nigerian public holidays for some scheduling stuff. It turned out to be a bit more involved than I initially thought, so I figured I’d share what I did.

Planning Around Nigerian Holidays? Essential Info for Visitors!

Starting Simple (And Failing)

First, I just tried to search for a simple list. You know, just a basic table or something I could copy and paste. I thought, “How hard could it be?” Turns out, finding a consistently updated and reliable list is tricky. Many sites had outdated info or were just plain confusing.

Getting a Bit More Serious

Then I thought I might be better to use Python.

I installed the `holidays` package. Seemed straightforward enough.

I imported the necessary libraries.

I then, created a list of Nigerian holidays for the current year. I was pretty happy with that.

Planning Around Nigerian Holidays? Essential Info for Visitors!

Displaying the Data

I figured out to display this data, just a simple loop would work.

So, I iterated through the `nigerian_holidays` object and printed each holiday and its date. Basic, but it gave me what I needed.

I could get all of the Nigerian Holiday dates through code.

Feeling Accomplished (For Now)

It took a little bit of trial and error to display the data, but I figured it out. I could see the data for Nigerian Holidays. Perfect for my needs!

LEAVE A REPLY

Please enter your comment!
Please enter your name here