I am writing a function that is to return the words of a string between the firstWord and secondWord that are given by the user.
def returnWordsBetween(firstWord, secondWord, inputString):
start = inputString.find(firstWord)
end = inputString.find(secondWord)
inputString =(start, end)
print inputString
firstWord = '<data>'
secondWord = '</data>'
inputString = 'fooz bizz <data> 31.25 funnel </data> fuzz'
Does this look to work? I am not getting anything to print out and no error codes, not sure what is up