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

8

remove strings from a list python if they're too small

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 too small"

Python Answers by Framework

Browse Popular Code Answers by Language