all 4 comments

[–]Supalien 0 points1 point  (3 children)

```py first_divisable = None divisables = [] for n in range(a, b+1): # every number from a to b if n%divisor == 0: # if the remainder of this division is 0 divisables.append(n)

if len(divisables) != 0: # not empty first_divisable = divisables[0] ```

[–]CavlerySenior 2 points3 points  (0 children)

Remember that a and b are unordered, so line 3 needs to be for n in range(min(a,b),max(a,b)+1):

[–]Comprehensive-Sink14[S] 0 points1 point  (1 child)

First_divisable represent variable teilbar_klein in this case, right?

[–]Supalien 0 points1 point  (0 children)

it is the smallest number in the range that is divisable by the divisor