Jump to content

Words containing "the" substring: Difference between revisions

m
m (Deal with a non-issue (repeated 'the' 'the' in word would have made word appear multiple times in result))
Line 1,770:
 
=={{header|Python}}==
<lang python>import urllib.request as request
Entered from a Posix shell:
 
with request.urlopen("http://wiki.puzzlers.org/pub/wordlists/unixdict.txt") as f:
<lang python>/Code$ python -c 'import sys
a = f.read().decode("ASCII").split()
> for line in sys.stdin:
 
> if "the" in line and len(line.strip()) > 11:
for s in a:
> print(line.rstrip())
if len(s) > 11 and "the" in s:
> ' < unixdict.txt
print(s)</lang>
authenticate
 
<pre>authenticate
chemotherapy
chrysanthemum
Line 1,808 ⟶ 1,810:
weatherproof
weatherstrip
weatherstripping</pre>
/Code$ </lang>
 
=={{header|Quackery}}==
1,336

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.