programming-examples/python/Date/Program to get the number of days of a given month and year.py

4 lines
95 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
from calendar import monthrange
year = 2016
month = 2
print(monthrange(year, month))