Skip to content

Instantly share code, notes, and snippets.

@cjauvin
Created June 9, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjauvin/63d7a94d093f4bebe836a69fe20402f7 to your computer and use it in GitHub Desktop.
Save cjauvin/63d7a94d093f4bebe836a69fe20402f7 to your computer and use it in GitHub Desktop.
>>> 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