True or False: Friday the 13th?

Face of a black cat
Photo by Hannah Troupe on Unsplash
Given the month and year as numbers, return whether that month contains a Friday 13th.The return should be true or false, and here are the examples supplied:has_friday_13(3, 2020) ➞ Truehas_friday_13(10, 2017) ➞ Truehas_friday_13(1, 1985) ➞ False
results from the 3 examples
The results of Friday the Thirteen

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Linux file system

Python Text Analysis With the Schrutepy Package

Pirate Nodes Launch — Voting

Positioning of infotainment screen in cars

Setting up a CI pipeline with CircleCI

Building an app for those who don’t use smartphones

A Caveat on Models in Ruby on Rails

Managing ODP.NET

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Annika Noren

Annika Noren

More from Medium

Again back to the roots

Several Essential Uses Of C++ Programming Language: One Should Know

Why Do Programmers Love Chess?

Python Static Arrays, Dynamic Arrays, and Deques