desislava_topuzakova

01. Day of Week

Oct 21st, 2020
547
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 1. read number
  2. # 2. check number
  3. day_of_week = int(input())
  4.  
  5. if day_of_week == 1:
  6.     print('Monday')
  7. elif day_of_week == 2:
  8.     print('Tuesday')
  9. elif day_of_week == 3:
  10.     print('Wednesday')
  11. elif day_of_week == 4:
  12.     print('Thursday')
  13. elif day_of_week == 5:
  14.     print('Friday')
  15. elif day_of_week == 6:
  16.     print('Saturday')
  17. elif day_of_week == 7:
  18.     print('Sunday')
  19. else:
  20.     print('Error')
RAW Paste Data