Skip to content

Instantly share code, notes, and snippets.

@nfredrik
Last active July 19, 2022 16:16
Show Gist options
  • Select an option

  • Save nfredrik/4c5571e494d486175b40b5bee21772f4 to your computer and use it in GitHub Desktop.

Select an option

Save nfredrik/4c5571e494d486175b40b5bee21772f4 to your computer and use it in GitHub Desktop.
temp
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