s = "I bought running shoes, but they started running alone, now we are both happy"
substring = "running"
try:
position = s.index(substring)
print("The position of the first occurrence is:", position)
except ValueError:
print("Substring not found")
'''
run:
The position of the first occurrence is: 9
'''