I wanted to keep title short. My goal is to create a calender type. the code I did was
days = ["sunday","monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
userInput = input("What day of the week would you like to assign a event: ")
lst = []
input_words=userInput.lower().split()
for word in input_words:
if word in days:
print(word.append(lst))
else:
print("You typed days of week wrong! Try Again!")
As you see I wanted to make 'userInput' only allowed too type in the items in 'days' which worked i think. The problem with the code is when I do run it it says attribute error 'str'object has no attribute 'append' and yes i tried other things such as insert but same thing. also I tried my best to make this clear for anyone helping so other than grammar any suggestions on improvement. Hope you have a good day!