All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General > Word Problems
Seven Consonants in a row (Posted on 2024-07-09) Difficulty: 3 of 5
Find at least two common words with seven consonants in a row.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts I found ... Comment 2 of 2 |
My program found (considering y as a vowel):
pgnttrp pgnttrp
substrstrata bstrstr
tsktsks tsktsks

But I think the first two entries are dictionary errors.
So the only one I found was tsktsks, which I think also is not really a word.

----------
import json
f = open('  path to my file  ')
data = json.load(f)
words = data.keys()

vowels = ['a','e','i','o','u','y']
for w in words:
    leng = len(w)
    if leng < 7:
        continue
    for pos in range(0, leng-6):
        substring = w[pos:pos+7]
        if any(x in substring for x in vowels ):
            continue
        print(w, substring)

  Posted by Larry on 2024-07-10 08:05:48
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information