Answers for "remove strings from a list python if they're short"

8

remove strings from a list python if they're short

list = ["wow", "it will not be remove"]

list = [item for item in list if len(item)>=7]

print(list)

#========   Output   ==================================================
["it will not be remove"]
Posted by: Guest on October-07-2021

Code answers related to "remove strings from a list python if they're short"

Python Answers by Framework

Browse Popular Code Answers by Language