0

Write a python function that takes in year number and month as input from user,and return the number of days in that month.

Can anyone please help me in this program coding as i m totally stuck.

7th May 2019, 4:10 AM
Ayesha Assad
Ayesha Assad - avatar
3 Respuestas
0
homework? import calendar year = int(input()) month= int(input()) print('Number of days', calendar.monthrange(year, month)[1])
7th May 2019, 4:23 AM
Owenizedd
Owenizedd - avatar
0
Yes a type of homework.i have to def function and get output while call a function.
7th May 2019, 4:26 AM
Ayesha Assad
Ayesha Assad - avatar
0
Have done it.thank you
7th May 2019, 4:39 AM
Ayesha Assad
Ayesha Assad - avatar