Determine Whether a Date Falls on a Weekend
Given a valid date, determine whether it falls on Saturday, Sunday, or a weekday.
Implement:
def classify_day(year: int, month: int, day: int) -> str:
Return:
"Saturday"if the d...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
