Advertisement
desislava_topuzakova

01. Day of Week

Oct 21st, 2020
1,737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement