Complete the words given below using three consecutive letters in alphabetic order.
As an example, for: (*)(*)A(*)US, add A, B, and C and it becomes ABACUS.
- CO(*)(*)E(*)
- (*)(*)(*)ORM
- SO(*)E(*)(*)
- (*)A(*)(*)RATE
- (*)U(*)G(*)L
- S(*)O(*)(*)Y
- (*)OBU(*)(*)
- (*)O(*)OT(*)NE
- (*)US(*)E(*)
CORSET
DEFORM
SOLEMN
SATURATE
CUDGEL
SNOOPY
ROBUST
MONOTONE
RUSSET
---- using a word list of 46,893 words ----
lets = [chr(65+i) for i in range(26)] + ['A','B','C']
data = ['CO{}{}E{}',
'{}{}{}ORM',
'SO{}E{}{}',
'{}A{}{}RATE',
'{}U{}G{}L',
'S{}O{}{}Y',
'{}OBU{}{}',
'{}O{}OT{}NE',
'{}US{}E{}']
scrambles = []
for d in data:
for i in range(26):
scrambles.append(d.format(lets[i],lets[i+1],lets[i+2]).lower())
for s in scrambles:
if s in words:
print(s.upper())
|
Posted by Larry
on 2023-03-15 12:46:05 |