@lernerpython.comReuven M. Lerner @lernerpython.com
2026-11-28 15:50 UTC
Combine #Python holidays, Counter, datetime, and comprehensions for a histogram of the dates when Thanksgiving fell: for date, count in Counter([one_tg.day for one_tg in us_holidays.get_named('Thanksgiving Day')]).items(): print(f'{date}: {count * 'x'}')
1 picture (not shown on this phone)
2 likes, 0 reposts, 0 replies
3 Next post4 More from @lernerpython.comBackBluesky home