Advertisement
stefano_p

eliminaK

Sep 25th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def elimK(L,K):
  2. #@param L:list
  3. #@param K:int > 0
  4.   A=[]+L
  5.  
  6.   for i in range(0,len(L)):
  7.    
  8.       if i*K<len(L):
  9.        
  10.         A.remove(i*K)
  11.        
  12.   return A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement