Algorithm · Salesforce · Easy
Given a specific date in the Gregorian calendar, your task is to identify whether that date is a Saturday, a Sunday, or a weekday (Monday through Friday). Write a function classify_day that accepts three integer arguments: year, month, and day. The function must return the string "Saturday" when the date falls on a Saturday, "Sunday" for a Sunday, and "Weekday" for any day from Monday to Friday. The input will always be three integers that together form a valid calendar…
Checking your access…