an extrapolate substring specified the initial and final value

You should use the .split() function

textList = [...]
for i in textList:
   i.split('train/')
   desiredValue = i[1].split(".")
   desiredValue = desiredValue[0]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top