Suppose my string is:
' Hai Hello\nGood eve\n'
How do I eliminate the '\n'
in between and make a string print like :
Hai Hello Good eve
?
If you don't want the newline at the end of the print statement:
import sys
sys.stdout.write("text")
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