Answers for "remove too short strings from a list python"

8

remove too short strings from a list python

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 too short strings from a list python"

Python Answers by Framework

Browse Popular Code Answers by Language