Created
May 18, 2022 11:25
-
-
Save polyglothacker/e720fbba5a01a9fbfd3124dbdfaa4cbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Generating new words from existing words | |
""" | |
fruits = ['grape', 'banana', 'apple', 'orange', 'litchi', 'pomegranate'] | |
'apple', 'grape' => 'leg' | |
'banana', 'apple' => 'bale' | |
By picking substrings at least of length 1 from one word beginning or end + substrings of at least length 1 from beginning or end | |
of another word - you can create new words. The substrings should not be the entire word. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment