Lines Matching refs:haystack
7 haystack = "supercalifragilistc" variable
8 for needle in [haystack[i:] for i in range(len(haystack))]:
9 print(needle, "in", haystack, "::", needle in haystack)
10 print(needle, "not in", haystack, "::", needle not in haystack)
11 print(haystack, "in", needle, "::", haystack in needle)
12 print(haystack, "not in", needle, "::", haystack not in needle)
13 for needle in [haystack[:i+1] for i in range(len(haystack))]:
14 print(needle, "in", haystack, "::", needle in haystack)
15 print(needle, "not in", haystack, "::", needle not in haystack)
16 print(haystack, "in", needle, "::", haystack in needle)
17 print(haystack, "not in", needle, "::", haystack not in needle)