Question: 
Write a function to find numbers within a given range where every number is divisible by every digit it contains.


Model's Code:
def divisible_by_digits(start, end):
    result = []
    for num in range(start, end + 1):
        digits = [int(d) for d in str(num) if d != '0']
        if all(num % d == 0 for d in digits):
            result.append(num)
    return result



Sample Correct Code:
def divisible_by_digits(startnum, endnum):
    return [n for n in range(startnum, endnum+1) \
                if not any(map(lambda x: int(x) == 0 or n%int(x) != 0, str(n)))]


Asserts:
assert divisible_by_digits(1,22)==[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 22]
assert divisible_by_digits(1,15)==[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15]
assert divisible_by_digits(20,25)==[22, 24]


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 745 of 974: 563/745 (75.57046979865771%): failed