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
English,
4 months ago
Physics,
4 months ago
Accountancy,
8 months ago
Social Sciences,
8 months ago
Chemistry,
1 year ago
Math,
1 year ago