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
2
x = int(input("Enter the No. of Day :"))
L = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
print(L[x-1])
Similar questions
Math,
3 months ago
Chemistry,
3 months ago
Economy,
3 months ago
Accountancy,
7 months ago
Social Sciences,
7 months ago
Chemistry,
11 months ago
Math,
11 months ago