MCPcopy Create free account
hub / github.com/Techtonica/curriculum / findTargetIndex

Function findTargetIndex

code-challenges/Week_2/string_manipulation.py:17–17  ·  view source on GitHub ↗
(inputStr, targetStr)

Source from the content-addressed store, hash-verified

15
16
17def findTargetIndex(inputStr, targetStr):
18 # Check if targetStr is empty
19
20 # Use str.find() method to get the index of the first occurrence

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected