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
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
Math,
3 months ago
Hindi,
7 months ago
Math,
7 months ago
Geography,
10 months ago
Computer Science,
10 months ago