Skip to content

Instantly share code, notes, and snippets.

@coseos
Created October 28, 2023 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coseos/9957b01141414d2b5f3bc83e08ae9fe9 to your computer and use it in GitHub Desktop.
Save coseos/9957b01141414d2b5f3bc83e08ae9fe9 to your computer and use it in GitHub Desktop.
Print calendar for current month from python
#!/usr/bin/env python3
# Print calendar for current month from python
import calendar
import datetime
(lambda d : print(calendar.month(d.year,d.month)))(datetime.datetime.now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment