►
Run
x = 'abcd-abcd-abcd' value = 'xy' result = x.index(value) print("Index :", result)
Output