Created
May 5, 2021 22:31
-
-
Save idcesares/fe1b85f9102985c3b1142c5e8e3f3414 to your computer and use it in GitHub Desktop.
Shows how many days have passed since the beginning of the year
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 | |
| day_of_year = datetime.now().timetuple().tm_yday | |
| print(f"What's the Current Day Number? {day_of_year} days have passed since the beginning of the year.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment