An alternative to what you want is splitting your string into a list of strings (per line).
mystr = 'a\nb\nc'
mystr = mystr.split(sep='\n')
print(mystr)
#this will be your print output:['a', 'b', 'c']
for s in mystr:
print(s)
#your print output:
#a
#b
#c