Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 495 Bytes

File metadata and controls

33 lines (19 loc) · 495 Bytes

Friday the 13th

Question

Calculate the number of Friday the 13th from 1900 to 2009.

Solution

.. literalinclude:: ../../languages/python/algorithm_fri_13.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_fri_13.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`algorithm_fri_13.py`
   * :python-better-explain:`algorithm_fri_13.rst`