►
Run
x = 'abcd-abcd-abcd' value = 'cd' start = 5 end = 9 result = x.rindex(value, start, end) print("Index :", result)
Output