Retired
Count the Friday the 13ths (retired)
7 of 12Legendstyler00
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
Similar Kata:
Stats:
Created | Oct 1, 2024 |
Warriors Trained | 18 |
Total Skips | 0 |
Total Code Submissions | 25 |
Total Times Completed | 12 |
JavaScript Completions | 7 |
Python Completions | 7 |
C# Completions | 2 |
Total Stars | 1 |
% of votes with a positive feedback rating | 50% of 9 |
Total "Very Satisfied" Votes | 3 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |