programming-examples/python/Date/Program to get the number of days of a given month and year.py
2019-11-15 12:59:38 +01:00

4 lines
95 B
Python

from calendar import monthrange
year = 2016
month = 2
print(monthrange(year, month))