Day name
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")
Comments
Leave a comment