desislava_topuzakova

01. Day of Week

Apr 17th, 2021
668
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # цяло число -> int
  2. # проверка за числото -> 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday
  3. # 6 - Saturday, 7 - Sunday
  4. number = int(input())
  5. if number == 1:
  6.     print('Monday')
  7. elif number == 2:
  8.     print("Tuesday")
  9. elif number == 3:
  10.     print("Wednesday")
  11. elif number == 4:
  12.     print("Thursday")
  13. elif number == 5:
  14.     print("Friday")
  15. elif number == 6:
  16.     print("Saturday")
  17. elif number == 7:
  18.     print("Sunday")
  19. else:
  20.     print("Error")
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×