Python Forum
Substring in a string
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Substring in a string
#2
This description has too much ambiguity or plain contradictions in it.

"key must be the substring itself, and the value has to show the indices from which each substring start and the number of occurrences as I've already mentioned before"

Where is in 'aab':[0,6] number of occurances? Is it zero or six?
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Substring in a string - by Propoganda - Nov-30-2019, 07:05 PM
RE: Substring in a string - by perfringo - Dec-01-2019, 08:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding how many times substring is in a string using re module ranbarr 4 3,963 May-21-2021, 06:14 PM
Last Post: nilamo
  Find a substring in a dictonary; value substring of key aapurdel 2 8,539 May-31-2019, 06:14 PM
Last Post: ichabod801
  Python: Returning the most frequently occurring substring in a larger string sskkddrit 2 4,937 Feb-09-2018, 06:41 AM
Last Post: sskkddrit
  [Discussion] Re. Substring counting Mekire 9 7,040 Jan-22-2018, 01:56 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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