►
Run
x = 'abcdefabcdef' value = 'bc' result = x.count(value) print(f'Number of occurrences is : {result}')
Output