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
mystring = "You have 15 new messages and the size is 32000" print mystring.split(" ")[2] #Prints the 3rd word print mystring.split(" ")[9] #Prints the 10th word