avatar Bite 16. PyBites date generator

Write a generator that returns every 100th day counting forward from the PYBITES_BORN date.

Here is how the generator would work if you import and use it in your REPL:

>>> from itertools import islice
>>> from pprint import pprint as pp
>>> from gendates import gen_special_pybites_dates
>>> gen = gen_special_pybites_dates()
>>> pp(list(islice(gen, 5)))
[datetime.datetime(2017, 3, 29, 0, 0),
datetime.datetime(2017, 7, 7, 0, 0),
datetime.datetime(2017, 10, 15, 0, 0),
datetime.datetime(2018, 1, 23, 0, 0),
 datetime.datetime(2018, 5, 3, 0, 0)]

Keep calm and code in Python, have fun!

Update 3rd of Jan 2021: previously we also asked for the PyBites N year marks as well, but this unnecessarily complicated this beginner Bite so simplified the requirements a bit.

Login and get coding
go back Beginner level
Bitecoin 2X

913 out of 957 users completed this Bite.
Will you be the 914th person to crack this Bite?
Resolution time: ~49 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 6.42 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help