Write a Python program that keeps a number from the user (between 1 and 7) and displays the name of the weekday. Example : Input number: 3 Output : Wednesday
- برمجة بايثون
- 2021-12-14
- softwareEngineer
الأجوبة
lst = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
n = int(input("Input number: "))
if n>=1 and n<=7:
print(lst[n-1])
else:
print("Invalid input")أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال