I would like to write an new line and string after the first the first occurrence of a string in Python For example my text file is like:
123456
example string<random>
asdfg
zxc
example string<random>
I would like it to change to
123456
example string<random>
Python inputted string
asdfg
zxc
example string<random> <- Stays the same