Jump to content

ABC words: Difference between revisions

(→‎{{header|Phix}}: Add Python)
Line 419:
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth
</pre>
 
 
=={{header|Python}}==
Outputs the same 55 words as other examples when entered in a Posix terminal shell
 
<lang python>python -c '
import sys
for ln in sys.stdin:
if "a" in ln and ln.find("a") < ln.find("b") < ln.find("c"):
print(ln.rstrip())
' < unixdict.txt
</lang>
 
=={{header|Raku}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.