Python Forum

Full Version: Need help for converting term into slice
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

How can write a code for converting a term into below form.

e.g         'Biomedical information community'

I want it should  return on  given form:

  'Biomedical information community' = 'Biomedical information' + 'information community'
Split into list of words, splice together the words you want (or extract sublists with "slices").