Create anagrams with Python
pythonicprose.blogspot.com
Create anagrams with Python
1–5 of 5 posts
Re: Create anagrams with Python
#2Based on your "output" it appears that your "input" contained, at least, the letters:
c e h i n o p p r s t y
FWIW, to the best of my knowledge there are no single words containing exactly those letters, although the internet anagram server found 42 2-word anagrams of those letters.
Re: Create anagrams with Python
#3How can "chest" and "chin" be anagrams of the same thing? An anagram is a rearrangement of the original letters, not just a list of the possible words that can be made. Based on your "output" it appears that your "input" contained, at least, the letters: c e h i n o p p r s t y FWIW, to the best of my knowledge there are no single words containing exactly those letters, although the internet anagram server found 42 2…
The line: matching_anagrams = getAnagramsFor("pythonic prose")
So, chest, chin, and the other output are derived from the "pythonic prose" literal. So, that should explain the "mystery" word you were searching for.
Re: Create anagrams with Python
#4How can "chest" and "chin" be anagrams of the same thing? An anagram is a rearrangement of the original letters, not just a list of the possible words that can be made. Based on your "output" it appears that your "input" contained, at least, the letters: c e h i n o p p r s t y FWIW, to the best of my knowledge there are no single words containing exactly those letters, although the internet anagram server found 42 2…
By reading the example, I noticed that the word (or phrase in this case) "pythonic prose" is being used as the large word. The line: matching_anagrams = getAnagramsFor("pythonic prose") So, chest, chin, and the other output are derived from the "pythonic prose" literal. So, that should explain the "mystery" word you were searching for.
And for reference, here are 43 two word anagrams:
Phonetics Ropy Phonetic Prosy Choppier Stony Prophetic Nosy
Chipper Snooty Pitcher Snoopy Cheroots Nippy Cheroot Snippy
Porches Pointy Cyphers Potion Cyphers Option Cypher Potions
Cypher Options Psyche Portion Inspector Hypo Copier Pythons
Copiers Python Price Typhoons Prices Typhoon Precis Typhoon
Pricey Photons Coronets Hippy Phonics Poetry Hypnotics Rope
Hypnotics Pore Hypnotic Spore Hypnotic Pores Hypnotic Ropes
Hypnotic Poser Hypnotic Prose Strophic Peony Poncho Pyrites
Ponchos Pyrite Choppy Orients Choppy Stonier Psycho Protein
Psycho Pointer Tonic Prophesy Tropics Phoney Tropic Phoneys
Tycoons Hipper Tycoon Shipper Crop Hypnotise
No doubt everyone will have their favorite.Re: Create anagrams with Python
#5It comes with most desktop Linuxes and is pretty fast.