The problem with the following code is on line 6 is that it will return false if the user inputs a day of the week with a capital. i.e "Tuesday". I am wanting this to return as "(day.capitalize())"
day = input("Please enter a day of the week")
def verify_day(day):
days_list = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
for x in days_list:
if x == day or x.capitalize == day:
return (day.capitalize())
elif day not in days_list:
return ("false")
print(verify_day(day))