Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python strip

txt = "  test    "

txt.strip()
#Output: "test"

txt.lstrip()
#Output: "test    "

txt.rstrip()
#Output: "  test"
 
PREVIOUS NEXT
Tagged: #python #strip
ADD COMMENT
Topic
Name
6+5 =