Retired

Count the Friday the 13ths (retired)

Description:

Count the Friday the 13ths

Given a year (greater than 1582), write a function that calculates the number of Friday the 13ths in that year.

Task

Implement a function FridayThe13ths(year) that returns the number of Friday the 13ths in the given year.

Examples

friday_13ths(2020)  2
friday_13ths(2015)  3
friday_13ths(1986)  1

Notes

  • The year will be an integer greater than 1582.
  • You may use built-in modules.
Fundamentals

Stats:

CreatedOct 1, 2024
Warriors Trained18
Total Skips0
Total Code Submissions25
Total Times Completed12
JavaScript Completions7
Python Completions7
C# Completions2
Total Stars1
% of votes with a positive feedback rating50% of 9
Total "Very Satisfied" Votes3
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes3
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Legendstyler00 Avatar
Ad