Answer:
When you are working with substrings in python you should treat the strings as lists, according to your answer the corrected code is given below:
sentence = "This is a possible value of sentence."
secondWord = sentence[sentence.find(" ")+1:]
secondWord = secondWord[0:secondWord.find(" ")]
print(secondWord)
Explanation:
#Define the value of the sentence for testing
sentence = "This is a possible value of sentence."
#Define a variable temp that starts when a blank space is find in the sentence to the end, sentence[n:] --> means everything in string after index "n"
temp = sentence[sentence.find(" ")+1:]
#Define the secondWord variable, you start at index 0 because in temp we already delete the first word and ends when finds the other blank space.
secondWord = temp[0:temp.find(" ")]
print(secondWord)