Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
def find_keywords(text):
list = ["apple", "juice", "dish", "greek", "english", "french", "spanish", "indian", "romanian", "chinese", "japanese", "korean", "italian", "vegan", "vegetarian", "halal", "gluten free", "allergy consicious"]
dText = text.split()
found_keyword = 0
for text_keyword in dText:
for search_keyword in list:
if search_keyword == text_keyword:
found_keyword += 1
save = search_keyword
if found_keyword==0:
save = "Keyword not found!"
return save
input = str(input("Type sentence: "))
print(find_keywords(input))