Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to strip a list in python
Wojtek Zeglin
Programming language:
Python
2021-04-04 16:24:30
0
Q:
how to strip a list in python
Jezza
Code:
Python
2021-06-22 09:59:00
list1 = ["a ", " b ", " c"] [i.strip() for i in list1] # ['a', 'b', 'c']
0
Tags
python
list
how
Related
strip array of strings python
strip whitespace python
strip comma from string python
python remove list
removing empty in list python
python remove
strip python
python strip characters
apply strip() a column in pandas
how to remove coma in python
python strip
what is r strip function in python
python remove \t
strip in python
python3 strip punctuation from string
python list .remove
python strip newline from string
New to Communities?
Join the community