Загрузка данных
str = "привет, мир" a = 0 while True: i = str.find('р', a) if i == -1: break else: a = i + 1 print(a)