def cycle_print(max_iterations: int, iteration_number: int, text: str) -> None:
for i in range(max_iterations):
if i % iteration_number == 0 and i != 0:
text = text.replace("%i%", str(i))
print(text)
else:
print(i)
cycle_print(10, 9, "This is %i% iteration.")
0
1
2
3
4
5
6
7
8
This is 9 iteration.