search in list python best way code example Example: python search list search = listname.index('search')