Python Forum
Need help for converting term into slice
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help for converting term into slice
#1
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'
Reply
#2
Split into list of words, splice together the words you want (or extract sublists with "slices").
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fix pandas copy/slice warning. deanhystad 3 827 Sep-07-2023, 03:18 PM
Last Post: deanhystad
  The term 'pip' is not recognized as the name of a cmdlet, function michaelnicol 1 629 Jul-16-2023, 11:12 PM
Last Post: deanhystad
  Sum of changing general term Vantin19 2 712 Apr-04-2023, 08:22 AM
Last Post: Gribouillis
  matrix multiplication term by term karolina 1 827 Dec-10-2022, 10:11 AM
Last Post: Gribouillis
  Slice creates new objects? fmr300 4 1,307 Jul-20-2022, 12:34 PM
Last Post: fmr300
  InvalidIndexError: (slice(None, None, None), slice(None, -1, None)) SuperNinja3I3 1 4,413 Jul-15-2022, 05:59 AM
Last Post: Larz60+
  Long-term stable source to get news headlines with Python? sandufi 4 1,917 Dec-23-2021, 09:48 AM
Last Post: sandufi
  Slice list Moris526 1 1,645 Dec-24-2020, 02:19 AM
Last Post: deanhystad
  increase and decrease a slice value? KEYS 2 2,094 Nov-10-2020, 11:35 PM
Last Post: KEYS
  Pass Tuple as a Slice nagymusic 2 2,362 Dec-12-2019, 04:42 AM
Last Post: nagymusic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020