Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
a = int(input())
if a%2 !=0 and a!=2 and a<=7:
  print("31")
elif a==2:
  print("28")
elif a<=7:
  print("30")
elif a%2==0 and a>=7:
  print("31")
else:
  print("30")
  #couldnt get months or name of days
  #gave up