Hi could you help me please. How can I set for example: the third letter of the words generated, as the letter"A".. So it would only generate words like (heAl, drAnk, flAke... ) and no other words that starts with A or anything.?
Thank you. I have some questions, though. As the lookup string gets longer, this seems to not scale, or maybe it is just my implementation. I am using your loop to generate a count, and then the same loop later to do the dictionary work. I am finding that the word typewriter (which has 147 words in it) is simply taking too long to parse through. I think I am having O(2^n) issues here. Any thoughts?
I had the same issue, and I placed a print (word, end=" ", flush=True) in the range loop to know the code is doing combinations in between and not stacked. Also, it does not take in count repeated words like "papa" checking against the dictionary this word "papa" four times. It would be preferable to try to make possible syllables with the combination vocals and consonants in a first function and then try to find all possible words permutating these syllabes.
What to do if I wanted the to begin with a particular alphabet along with the order.... I mean if I have consonants and wanted to fill in the vowels only?
I have a problem . It says no module name enchant "F:\Python for Beginners\dimik\venv\Scripts\python.exe" "F:/Python for Beginners/dimik/problem_16.py" Traceback (most recent call last): File "F:/Python for Beginners/dimik/problem_16.py", line 2, in import enchant ModuleNotFoundError: No module named 'enchant' Process finished with exit code 1
Another idea is how we could simulate a solution for games like scrabble where we add holes and a fixed position of a letter on the table that must be combined with the letters you have in your hand
Perfect for me to maximize my score in Words With Friends
Thanks, just what I needed
Hi could you help me please. How can I set for example: the third letter of the words generated, as the letter"A".. So it would only generate words like (heAl, drAnk, flAke... ) and no other words that starts with A or anything.?
thanks bro
welcome!
Thank you. I have some questions, though. As the lookup string gets longer, this seems to not scale, or maybe it is just my implementation. I am using your loop to generate a count, and then the same loop later to do the dictionary work. I am finding that the word typewriter (which has 147 words in it) is simply taking too long to parse through. I think I am having O(2^n) issues here. Any thoughts?
I had the same issue, and I placed a print (word, end="
", flush=True) in the range loop to know the code is doing combinations in between and not stacked. Also, it does not take in count repeated words like "papa" checking against the dictionary this word "papa" four times. It would be preferable to try to make possible syllables with the combination vocals and consonants in a first function and then try to find all possible words permutating these syllabes.
What to do if I wanted the to begin with a particular alphabet along with the order.... I mean if I have consonants and wanted to fill in the vowels only?
Sir my system is showing error when am giving enchant statement.
Please help me with this!
Thanks a lot. I am new follower.
Most welcome! I wish that you stay connected forever! :-)
Could you add a way to print the word followed by its meaning with some kind of internet official dictionary. .
still gives some words that are not in the dictionary and have no meaning. Please help
can you share the file with an example??
Can this be done by not using libraries
What word using the letters hotcor
What program did you use to type the code
This is default python editor IDLE
@@xtremeExcel Thank You 😀
Why the word "extreme" itself was not printed? Wasn't it a valid word found in en_US dictionary?
Got it! You must add "+1" after len(inp) in range: for n in range(3,len(inp) + 1)
Glad you figured it out.
I have a problem .
It says no module name enchant
"F:\Python for Beginners\dimik\venv\Scripts\python.exe" "F:/Python for Beginners/dimik/problem_16.py"
Traceback (most recent call last):
File "F:/Python for Beginners/dimik/problem_16.py", line 2, in
import enchant
ModuleNotFoundError: No module named 'enchant'
Process finished with exit code 1
Use pip or easy_install to install the package
@@xtremeExcelwitch package I have to install (the name of package) like python -m pip install matplotlib
Thanks a lot for the video. I would like to adapt to other languages like Portuguese Spanish. ..
Another idea is how we could simulate a solution for games like scrabble where we add holes and a fixed position of a letter on the table that must be combined with the letters you have in your hand
I found it the hardway
pip install pyenchant
This should work
How to get all permutations of a given word in the same order of given word
Be more specific to question
Bro share me the watsapp group or telegram group link to join