MagicWinnie

Untitled

Dec 24th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #3
  2. n = int(input("Введите номер месяца: "))
  3. if n == 1 or n == 3 or n == 5 or n == 7 or n == 8 or n == 10 or n == 12:
  4.   print(31)
  5. elif n == 2:
  6.   print(28)
  7. elif n == 4 or n == 6 or n == 9 or n == 11:
  8.   print(30)
  9. else:
  10.   print("Такого месяца не существует")
Add Comment
Please, Sign In to add comment