Created
June 9, 2018 19:14
-
-
Save cjauvin/63d7a94d093f4bebe836a69fe20402f7 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
>>> words = "L’organisme ou la forme peut etre desintegres sin on en fait un emploi occulte".split() | |
>>> words | |
['L’organisme', 'ou', 'la', 'forme', 'peut', 'etre', 'desintegres', 'sin', 'on', 'en', 'fait', 'un', 'emploi', 'occulte'] | |
>>> n_words = len(words) | |
>>> left = words[:n_words//2] | |
>>> left | |
['L’organisme', 'ou', 'la', 'forme', 'peut', 'etre', 'desintegres'] | |
>>> right = words[n_words//2:] | |
>>> right | |
['sin', 'on', 'en', 'fait', 'un', 'emploi', 'occulte'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment