Friday the 13th

Created by Julien Palard

Find the next friday the 13th.

Write a function named friday_the_13th, which takes no parameter, and just returns the date of the next friday the 13th.

If today is a friday the 13th, return it, not the next one.

Return the date as a string of the following format: YYYY-MM-DD.

Example

>>> print(friday_the_13th())
2019-09-13

There's no corrections yet, hit the `Submit` button to send your code to the correction bot.

Keyboard shortcuts:

  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.

See solutions