Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arr = [31,28,31,30,31,30,31,31,30,31,30,31]
- m = int(input("Month is "))
- y = int(input("Year is "))
- if m == 2 and ((y % 4 == 0 and y % 100 != 100) or y % 400 == 0):
- print("29")
- else:
- print(arr[m-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement