►
Run
x = 'abcd-abcd-abcd' value = 'bc' start = 5 end = 10 result = x.count(value, start, end) print(f'Number of occurrences is : {result}')
Output