Computer Science, asked by kripa1048, 5 months ago

Write a python program that prompts the user to input a number.The program should display corresponding days to the number.Example:- if the user types 1 the output should be sunday and if the user types 7 the day should be saturday.​​

Answers

Answered by AqdasZishan
2

x = int(input("Enter the No. of Day :"))

L = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]

print(L[x-1])

Similar questions