Replace with newline python
1 answer
One thing is the internal representation of the string:
>>> a=">NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS" >>> a.replace(">","> \n") '> \nNKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS' the other is how it will be displayed on the screen:
>>> print(a.replace(">","> \n")) > NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS +8