how to strip a list in python
list1 = ["a ", " b ", " c"]
[i.strip() for i in list1] # ['a', 'b', 'c']
how to strip a list in python
list1 = ["a ", " b ", " c"]
[i.strip() for i in list1] # ['a', 'b', 'c']
python strip()
a = " smurf "
a = a.strip()
#remove space at begining and end of string
print(a)
#smurf
strip function in python
lol = ' lol '
print(lol)
# normal output = lol
lol = ' lol '
print(lol.strip)
# strip output = lol
# Cool right
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us