Ad
Code
Diff
  • find_multiples=lambda b,l:list(range(b,l+1,b))
    • find_multiples=lambda b,l:[*range(b,l+1,b)]
    • find_multiples=lambda b,l:list(range(b,l+1,b))
Code
Diff
  • def multiplica(a, b):
        c = a * b
        return c
    print(multiplica(4, 5))
    • def multiplica(a, b):
    • return a * b
    • c = a * b
    • return c
    • print(multiplica(4, 5))
Code
Diff
  • int returnHundred() 
    {
      int i = 0;
      for (int r = 0; r <= 100; ++r) { i = r; }
      return i;
    }
    • int returnHundred()
    • {
    • int res = 0;
    • while(++res < 100) {}
    • return res;
    • int i = 0;
    • for (int r = 0; r <= 100; ++r) { i = r; }
    • return i;
    • }