How can i print only certain words from a string in python ? lets say i want to print only the 3rd word (which is a number) and the 10th one
while the text length ma
Take a look at str.split().
Alternatively, if you're looking for certain things you might try regular expressions instead; that could cope with the filler words changing, even. But if all you care about is word position within the string, then splitting and printing out certain elements of the resulting list would be the most straightforward.