Computer Science, asked by kripa1048, 7 months ago

Write a python program that prompts the user to input a number.Program should display the corresponding days to the number.
Example : if the user types 1, the output should be Sunday and if user types 2 in the output should be Saturday.​

Answers

Answered by midhunamurali2019
1

Answer:

Explanation:

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

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

print(L[x-1])

hope it help u

Similar questions