207k views
4 votes
Write a program to input the day of a week and print holiday if it is Saturday

User Erdinc Ay
by
4.7k points

1 Answer

3 votes
DAY=int(input(“Please enter the number of day: ”))
if DAY==1:
… print(“The day is Monday and a working day”)
…elif DAY==2:
… print(“The day is Tuesday and a working day”)
…elif DAY==3:
… print(“The day is Wednesday and a working day”)
…elif DAY==4:
… print(“The day is Thursday and a working day”)
…elif DAY==5:
… print(“The day is Friday and a working day”)
…elif DAY==6:
… print(“The day is Saturday and a holiday”)
…elif DAY==7:
… print(“The day is Sunday and a working day”)
…else:
… print(“Invalid number”)
User Venzen
by
5.3k points