'How do I call this leetcode function to run on python visualiser?

class Solution:
    def removeElement(self, nums: List[int], val: int) -> int:
        for k in nums:
            if val == k:
                nums.pop(nums.index(val))
        return len(nums)

I wish to see how this function works when inputs are nums = [3,2,2,3], val = 3 using the python visualizer. How do I call it to do so?

https://pythontutor.com/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source