Ad
Code
Diff
  • find_multiples_of_4_and_6 = lambda n : [i for i in range(n) if not (i % 4 and i % 6)]
    • def find_multiples_of_4_and_6(n):
    • return [i for i in range(n) if not (i % 4 and i % 6)]
    • find_multiples_of_4_and_6 = lambda n : [i for i in range(n) if not (i % 4 and i % 6)]
Code
Diff
  • replicate = lambda t, n : [] if t <= 0 else [n]+replicate(t-1,n)
    
    • def replicate(t, n):
    • return [] if t <= 0 else [n]+replicate(t-1,n)
    • replicate = lambda t, n : [] if t <= 0 else [n]+replicate(t-1,n)