I have a string as
a='''123
456
789'''
I want to replace 456 with something similar to a null value, so that the corresponding output is
123
789
The objective is to eliminate the empty line that would be generated as a result of
a=a.replace('456','')
null, which python does not have('\n456','')