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.
data = "гол 25кк".split()
if len(data) > 0:
command = data[0]
data.pop(0)
if len(data) == 1:
if command.lower() == "гол":
value_data = data[0].split('к')
value = int(value_data[0])
value_data.pop(0)
chars_k = len(value_data)
print(command)
print(value)
print(chars_k * "к")
гол
25
кк