Anonymous user
Find words which contain the most consonants: Difference between revisions
Find words which contain the most consonants (view source)
Revision as of 04:11, 26 July 2022
, 1 year ago→{{header|Python}}: added word length > 10 requirement; improved efficiency (har har) by not reading dictionary file multiple times
(→{{header|Python}}: added word length > 10 requirement; improved efficiency (har har) by not reading dictionary file multiple times) |
|||
Line 1,862:
<lang python>import re
print('\n'.join(map(lambda x: f'{x[0]}: {" ".join(sorted(x[1]))}' if len(x[1]) <
{{out}}
<pre>9: comprehensible
7:
6:
5:
4: aeronautic aficionado ...<bunch of words>... univariate</pre>
▲1: 277 words
=={{header|R}}==
|