Answer to Question #259637 in Python for Sai

Question #259637

Day name

1
Expert's answer
2021-11-01T06:35:40-0400
a = int(input("Input the day number: "))

if a == 1: print("Monday")
elif a == 2: print("Tuesday")
elif a == 3: print("Wednesday")
elif a == 4: print("Thursday")
elif a == 5: print("Friday")
elif a == 6: print("Saturday")
elif a == 7: print("Sunday")
else: print("Invalid input")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog