Quiz on Python Calendar Monthrange Function



1. What does the monthrange function in Python return?
2. Which module must be imported to use the monthrange function?
3. What parameters does the monthrange function accept?
4. If you call monthrange(2023, 2), what will be the output?
5. Which day does the week start on according to the returned tuple of monthrange?

Advertisements