Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Using strip() method to remove the newline character from a string

# strip() method to remove newline characters from a string
text= "
 Welcome to Python Programming 
"
print(text.strip())
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Using #method #remove #newline #character #string
ADD COMMENT
Topic
Name
9+8 =