Python Dates and Times in Python Dates and Times Dating Methods

Wikipedia link

What does he mean by a Wikipedia link to that date

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 59,821 Points

Wikipedia has entries for every day of the calendar year. For example, the link for April 1 is https://en.wikipedia.org/wiki/April_1

So the suggested script would need to accept a month and day of the month, then covert those responses in to a text string that would of the same format as the Wikipedia link above.

Post back if you need more help. Good luck!

Is this correct

import datetime
wikipedia_link = f"https:en.wikipedia.org/wiki/{date}_{time}"
print(wikipedia_link)