0

Have trouble about generating words in python

do somebody have a piece of code that can generate words using random.sample ? Python

17th Dec 2017, 3:54 PM
themx05
themx05 - avatar
4 Answers
0
yes real words. just by combining the letters to obtain a certain size
17th Dec 2017, 7:19 PM
themx05
themx05 - avatar
0
for example with "abcdefgh" and length=3 it can produce "cha"
17th Dec 2017, 7:21 PM
themx05
themx05 - avatar
0
You provide the list and length? If so, then words like “fade”, “add”, “a”, “as”, or “him” is off limits? If that is the case, you go down the dictionary list of 3 letter words and filter with letters in this list. e.g. for “a” you might get the following list: ace add ate ask ... and you would filter down
17th Dec 2017, 10:22 PM
H Chiang
- 1
Real words? If so, you need a dictionary. The other question is will the word be length specific?
17th Dec 2017, 7:18 PM
H Chiang