def removeElement(self, nums, val):
:type nums: List[int]
:type val: int
nums[:] = [x for x in nums if x!=val]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.