DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
rstrip in python
text = " Apple " x = txt.rstrip() >>> ' Apple' x.rstrip('e') >>> ' Appl' x.lstrip() >>> 'Apple'
PREVIOUS
NEXT
Tagged:
#rstrip
#python
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit