Write a function that finds and removes the second occurrence of a given string in a passed string.

Note: An answer could make use of a variety of techniques (such as looping through the string in some way), but the easiest way is to make use of the find method and making a substring.

```
def secondIndex(passedString, givenString):
index = passedString.find(givenString)
return passedString.find(givenString, index+1)
```

Computer Science & Information Technology

You might also like to view...

Tabular format uses animations and hyperlinks

Indicate whether the statement is true or false

Computer Science & Information Technology

A table of authorities is most closely associated with legal documents

Indicate whether the statement is true or false

Computer Science & Information Technology