SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Написать функцию season, принимающую 1 аргумент — номер месяца (от 1 до 12), и возвращающую время года, которому этот месяц принадлежит (зима, весна, лето или осень).
  2. def season(month)
  3.     if month == 1 or 2 or 12
  4.         return "This is winter"
  5.     elif month == 3 or 4 or 5
  6.         return "This is spring"
  7.     elif month == 6 or 7 or 8
  8.         return "This is summer"
  9.     elif month == 9 or 10 or 11
  10.         return "This is fall"
  11.     else month != 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12
  12.         return
  13. month= float(innput("Write a number of month: "))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top