I have a string
a=">NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS"
I want print a as
">
NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS"
I did a=a.replace(">","> \n")
but it doesn't work. Where am I going wrong?
One thing is the internal representation of the string:
>>> a=">NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS"
>>> a.replace(">","> \n")
'> \nNKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS'
another one is how it will be shown on screen:
>>> print(a.replace(">","> \n"))
>
NKMFFALGLLGDGVIGALDTVVSSMGAVGASGLS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With