my_str = "Lorem Ipsum Lorem Ipsum"
perenos = 15
.
.
.
print(result)
Ожидаемый результат:
Lorem Ipsum\nLorem Ipsum
my_str = "Lorem Ipsum Lorem Ipsum"
perenos = 15
perenos1 = []
for i in my_str:
perenos1.append(i)
perenos1.insert(perenos,'\n')
my_str = ''.join(perenos1)
print(my_str)