I am trying to set the variable numberOfDays equal to the number of days in the month. However, the elif statement has a flaw. I am clearly not using the "or" statement correctly because because when I enter anything, it always says that numberOfDays is equal to 30.
monthSelection = input("Enter the month you wish to view: ")
if monthSelection == "February":
numberOfDays = 28
elif monthSelection == "April" or "June" or "September" or "November":
numberOfDays = 30
else:
numberOfDays = 31
Is there any way to reformat this code to make it functional?