Python: List: Skip Two

Write a function that takes a list lst and a float n and returns another list containing all values of lst except two values after each number divisible by n. In the following example, number 4 is divisible by n = 4, therefore 5 and 6 are removed from the output list. Also, 8 and 12 are divisible by 4 and 12, 10, and 11 are removed from the list. Note that the original list should not be changed and a new list should be returned.


skip_two([1,2,3,4,5,6,7,8,12,10,11,12], 4) -> [1,2,3,4,7,8,12]

Test 1    

Test 2    

Test 3    

Test 4    

Test 5    

Test 6    

Test 7