fork download
  1. s = input()
  2. c = input()
  3. indexes = [i for i, char in enumerate(s) if char == c]
  4. if indexes:
  5. for index in indexes:
  6. print(index, end=' ')
  7. else:
  8. print("Not Found")
Success #stdin #stdout 0.13s 14080KB
stdin
programming
g
stdout
3 10