Right now i have a list of each separate key word is there a way to make this into one array or string and search for individual words instead of having to separate each key word and make it repeatable?
keywordlist = ("pricing")
keywordlist1 = ("careers")
keywordlist2 = ("quotes")
keywordlist3 = ("telephone number")
keywordlist5 = ("about")
while True:
question1 = raw_input("Is there anything I can help with today? ")
question_parts = question1.split(" ")
for word in question_parts:
if word.lower() in keywordlist:
print("Yah i can show you some pricing: ")
elif word.lower() in keywordlist1:
print("Here is our career page and feel free to apply: ")
elif word.lower() in keywordlist2:
print("yah i can show you to our quote page: ")
elif word.lower() in keywordlist3:
print("Yah here is our contact page and feel free to contact us: ")
elif word.lower() in keywordlist5:
print("Here is some information about us:")
goagain = raw_input("Would you like any More Help? (Yes/No)")
if goagain == "Yes":
#Get values again
pass #or do whatever
elif goagain != "Yes":
print ("Bye!")
break
keywordlist
etc aren't lists or tuples, they're just strings.