DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to strip a list in python
list1 = ["a ", " b ", " c"] [i.strip() for i in list1] # ['a', 'b', 'c']
PREVIOUS
NEXT
Tagged:
#strip
#list
#python
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit