Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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

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