Advertisement
Tsenkov

day_of_the_week

Jul 16th, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. day_of_the_week = int(input())
  2. if day_of_the_week >=1 and day_of_the_week <=7:
  3.     if day_of_the_week == 1:
  4.         print("Monday")
  5.     elif day_of_the_week == 2:
  6.             print("Thusday")
  7.     elif day_of_the_week == 2:
  8.             print("Thusday")
  9.     elif day_of_the_week == 3:
  10.             print("Wednesday")
  11.     elif day_of_the_week == 4:
  12.             print("Thursday")
  13.     elif day_of_the_week == 5:
  14.             print("Friday")
  15.     elif day_of_the_week == 6:
  16.             print("Saturday")
  17.     elif day_of_the_week == 7:
  18.             print("Sunday")
  19. else:
  20.     print("Error")
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement