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.
3 Réponses
0
homework?
import calendar
year = int(input())
month= int(input())
print('Number of days', calendar.monthrange(year, month)[1])
0
Yes a type of homework.i have to def function and get output while call a function.
0
Have done it.thank you