• where is an error

Question related to mission _X The smallest number


where is an error

def lprod(l): """ Calculate product of list items """ if l: return l.pop() * lprod(l) else: return 1

def checkio(data): 'Find the smallest number divisible by each of the numbers from given range.' List= list(range(data[0],data[-1])) max1=List[-1] max2=List[-2] first_try = max1*max2

for mnozhitel in range(1,1000):
    for delitel in List:
        if number%delitel: break
    else: return number
else: return lprod(List)

if name == 'main': assert checkio([2,10]) == 2520, 'First' print 'All Ok'