I want to search a list if I do list.index("word to search") and the word isn't in the list I get an error I don't want to get one from python but want my own error like word is not in the list how ? or is there an other way to search the list for strings and if he doesn't find one he doesn't print an error ?