I am just now learning list comprehension in my python class and would like to know why the below code returns an invalid syntax error as a result of the "else" clause?
allDays=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
daysWithPlaydate=[]
for days in range(len(allDays)):
answer=input("Is there a playdate on " + allDays[days] + "?")
if answer == "yes":
daysWithPlaydate.append(allDays[days])
outputs=["Weekday Playdate: " + weekdays for weekdays in daysWithPlaydate if weekdays!="Friday" or weekdays!="Saturday" or weekdays!="Sunday" else "Weekend Playdate: " + weekdays for weekdays in daysWithPlaydate]
for i in range(len(outputs)):
print(outputs[i], end=", ")
P.S.: For the print statement at the end, I would like to know how to remove the final comma when I print out the list, as I always seem to get a comma after the final day in the list, thank you.