Question #259637

Day name

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS