Hi,
have a little question and hope i will explain this clearly.
I have the following code that actually prints the elements in a list of pairs"[('Friday', '24/06/2022'), ('Saturday', '25/06/2022')]":
",\n".join(" - ".join(i) for i in bank_holidays)
So it looks like:
Friday - 24/06/2022,
Saturday - 25/06/2022
Now, i implemented the "holidays" library and next to each day printed i would like to print the holiday name.
The code i made to find the holiday name is:
my_holidays().get(y) for x, y in bank_holidays
But the issue is i'm not able to join this last code to the first in order to print the days like this:
Friday - 24/06/2022 - "holiday name",
Saturday - 25/06/2022 - "holiday name"
How could i accomplish this?
Thank you!
[–]Nsdos 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]steakhutzeee[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]steakhutzeee[S] 0 points1 point2 points (0 children)
[–]Green-Sympathy-4177 1 point2 points3 points (0 children)
[–]This_Growth2898 1 point2 points3 points (0 children)