Python | Get all possible words using letters of a WORD

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 31

  • @raphaelmapp8407
    @raphaelmapp8407 3 ปีที่แล้ว +2

    Perfect for me to maximize my score in Words With Friends

  • @michaelhearmon9965
    @michaelhearmon9965 4 ปีที่แล้ว +1

    Thanks, just what I needed

  • @amiralient.t763
    @amiralient.t763 2 ปีที่แล้ว +1

    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.?

  • @baracaldorojasjuanmanuel72
    @baracaldorojasjuanmanuel72 2 ปีที่แล้ว +1

    thanks bro

  • @GKizer
    @GKizer 3 ปีที่แล้ว +1

    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?

    • @salva8722
      @salva8722 3 ปีที่แล้ว

      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.

  • @ujjwalranjanraoietlucknows8151
    @ujjwalranjanraoietlucknows8151 3 ปีที่แล้ว

    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?

  • @user-yt2lr5dn8p
    @user-yt2lr5dn8p ปีที่แล้ว

    Sir my system is showing error when am giving enchant statement.
    Please help me with this!

  • @KhalilYasser
    @KhalilYasser 4 ปีที่แล้ว

    Thanks a lot. I am new follower.

    • @xtremeExcel
      @xtremeExcel  4 ปีที่แล้ว

      Most welcome! I wish that you stay connected forever! :-)

  • @salva8722
    @salva8722 3 ปีที่แล้ว

    Could you add a way to print the word followed by its meaning with some kind of internet official dictionary. .

  • @purvajpiyushvaidya4953
    @purvajpiyushvaidya4953 3 ปีที่แล้ว +1

    still gives some words that are not in the dictionary and have no meaning. Please help

    • @xtremeExcel
      @xtremeExcel  3 ปีที่แล้ว

      can you share the file with an example??

  • @captainn3m014
    @captainn3m014 3 ปีที่แล้ว

    Can this be done by not using libraries

  • @dianenakano7862
    @dianenakano7862 2 ปีที่แล้ว

    What word using the letters hotcor

  • @sunnybuilds
    @sunnybuilds 2 ปีที่แล้ว

    What program did you use to type the code

    • @xtremeExcel
      @xtremeExcel  2 ปีที่แล้ว

      This is default python editor IDLE

    • @sunnybuilds
      @sunnybuilds 2 ปีที่แล้ว +1

      @@xtremeExcel Thank You 😀

  • @eloureirotubeyou
    @eloureirotubeyou 3 ปีที่แล้ว

    Why the word "extreme" itself was not printed? Wasn't it a valid word found in en_US dictionary?

    • @eloureirotubeyou
      @eloureirotubeyou 3 ปีที่แล้ว +2

      Got it! You must add "+1" after len(inp) in range: for n in range(3,len(inp) + 1)

    • @xtremeExcel
      @xtremeExcel  3 ปีที่แล้ว

      Glad you figured it out.

  • @utshosadhakjoy6702
    @utshosadhakjoy6702 4 ปีที่แล้ว

    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

    • @xtremeExcel
      @xtremeExcel  3 ปีที่แล้ว

      Use pip or easy_install to install the package

    • @SouravDas-jf6kn
      @SouravDas-jf6kn 3 ปีที่แล้ว

      @@xtremeExcelwitch package I have to install (the name of package) like python -m pip install matplotlib

    • @salva8722
      @salva8722 3 ปีที่แล้ว

      Thanks a lot for the video. I would like to adapt to other languages like Portuguese Spanish. ..

    • @salva8722
      @salva8722 3 ปีที่แล้ว

      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

    • @bharath3074
      @bharath3074 3 ปีที่แล้ว +1

      I found it the hardway
      pip install pyenchant
      This should work

  • @dharmatejalinga6026
    @dharmatejalinga6026 4 ปีที่แล้ว

    How to get all permutations of a given word in the same order of given word

  • @Ram-ih1hf
    @Ram-ih1hf 4 ปีที่แล้ว +1

    Bro share me the watsapp group or telegram group link to join