Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python trim

str_1 = "  Hire freelance developers  "

print(str_1.strip())
#Output = "Hire freelance developers"

print(str_1.rstrip())
#Output = "  Hire freelance developers"

print(str_1.lstrip())
#Output = "Hire freelance developers  "
Source by flexiple.com #
 
PREVIOUS NEXT
Tagged: #python #trim
ADD COMMENT
Topic
Name
3+2 =