Here is the python code to find the index of the first occurrence of a substring in a string.
We can use find() and index() both for this.
Code -
org_string = "This is Code House"
print(org_string.find("Code")) # 8
print(org_string.index("House")) # 13