Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove whitespace from start of string

'     hello world!    '.strip()
'hello world!'


'     hello world!    '.lstrip()
'hello world!    '

'     hello world!    '.rstrip()
'    hello world!'
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #python #remove #whitespace #start #string
ADD COMMENT
Topic
Name
3+7 =