Ad
Code
Diff
  • def remove(integers, values):
        return list(filter(lambda i: i not in values, integers))
    • def remove(integers, values):
    • return list(filter(lambda x: x not in set(values), integers))
    • return list(filter(lambda i: i not in values, integers))
Code
Diff
  • power = pow
    • power=lambda n,p,r=1:power(n,p-1,r*n)if p else r
    • power = pow