LearnPy Hub
← Modules & the Standard Library problems
Medium

Days in a Month With calendar

Read a year and a month and print the weekday name of the 1st and the number of days, using calendar.monthrange and calendar.day_name.

Input

Two integers.

Output

One line.

Sample 1

Input
2026
2
Output
Sunday 28

Sample 2

Input
2024
2
Output
Thursday 29
solution.py
Output appears here
Days in a Month With calendar · Python practice problem · LearnPy Hub