for eachResult in resultsArr : eachResultCount=eachResultCount+1 lineArr=self.splitSearchResults(eachResult,';') # Loop through each of the lines in the result for eachLine in lineArr : eachLineCount=eachLineCount+1 eachAttribute=self.splitSearchResults(eachLine,':') # Loops thruogh the key and values for this line for value in eachAttribute : eachAttributeCount=eachAttributeCount+1