Guest User

t1

a guest
Jan 30th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def month(a):
  2. if (a > 12) or (a < 1) or (a%1 != 0):
  3. print("oh my god danila are you crazy")
  4. else:
  5. if (a < 8) and (a > 0) and (a%2 != 0):# а если double являктся ли это числом месяца?
  6. print("31")
  7. else:
  8. if (a == 8) or (a == 10) or (a == 12):
  9. print("31")
  10. else:
  11. if (a == 4) or (a == 6) or (a == 9) or (a == 11):
  12. print("30")
  13. else:
  14. if (a == 2):
  15. print("29")
  16. mon = int(input())
  17. month(mon)
Advertisement
Add Comment
Please, Sign In to add comment