to get number of days in month | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

to get number of days in month

can anyone suggest me how to get number of days in month, in simplest method in python?

19th Nov 2018, 9:29 AM
yuri
yuri - avatar
2 Answers
0
You can use the calendar module and monthrange function, this will get you a number of the day and the days of the month.
19th Nov 2018, 10:43 AM
Luiz Santos
Luiz Santos - avatar
0
thank you. ill try it
19th Nov 2018, 10:44 AM
yuri
yuri - avatar