Last active
July 19, 2022 16:16
-
-
Save nfredrik/4c5571e494d486175b40b5bee21772f4 to your computer and use it in GitHub Desktop.
temp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| temp34 = [34, 36, 38, 35, 29, 31] | |
| spec_week = datetime.fromisocalendar(year=datetime.now().year, week=34, day=1) | |
| day_in_month, month = int(spec_week.strftime("%d")), spec_week.strftime("%b").lower() | |
| the_date = [f'{day} {month}' for day in range(day_in_month, day_in_month + len(temp34))] | |
| for the_date, grader in zip(the_date, temp34): | |
| print(f'{the_date}: {"*" * grader}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment