Advertisement
veronikaaa86

02. Weekend or Working Day

Jan 22nd, 2022
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. day = input()
  2.  
  3. is_working_day = day == "Monday" or day == "Tuesday" or day == "Wednesday" or day == "Thursday" or day == "Friday"
  4. is_weekend = day == "Sunday" or day == "Saturday"
  5.  
  6. if is_working_day:
  7. print("Working day")
  8. elif is_weekend:
  9. print("Weekend")
  10. else:
  11. print("Error")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement