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"]

Here is what the above code is Doing:
1. We have a list of strings.
2. We create a new list, which we call list.
3. We iterate through the list of strings.
4. For each string in the list, we check if the length of the string is greater than or equal to 7.
5. If the length of the string is greater than or equal to 7, we add the string to the new list.
6. We print the new list.