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
Chemistry,
2 months ago
Physics,
2 months ago
Math,
2 months ago
Accountancy,
5 months ago
Social Sciences,
5 months ago
Chemistry,
9 months ago
Math,
9 months ago