@lernerpython.comReuven M. Lerner @lernerpython.com
2026-11-28 16:30 UTC
Let's sort yesterday's #Python histogram by date! Counter is a dict, and the keys are ints, so sorted will do what we want: for date, count in sorted(Counter([one_tg.day for one_tg in us_holidays.get_named('Thanksgiving')]).items()): print(f'{date}: {count * 'x'}')
1 picture (not shown on this phone)
3 likes, 0 reposts, 0 replies
3 Next post4 More from @lernerpython.comBackBluesky home