Loops, info -

Off-Platform Project: Reggie’s Linear Regression

I have a problem getting to the same outcome as the solution, in part 2, where it asks to “Try a bunch of slopes and intercepts!”

my code is as follows

possible_ms = [m/10 for m in range(-100, 101, 1)]

possible_bs = [b/10 for m in range(-200, 201, 1)]

this gives me a line of best fit in part 3 of m=0.4 b=1.6 and error=5.0

the solution code is

possible_ms = [m * 0.1 for m in range(-100, 101)]

possible_bs = [b * 0.1 for b in range(-200, 201)]

this gives a line of best fit in part 3 of m=0.3 b=1.7 and error=5.0

I have absolutely no idea why this is occurring when mathematically they are same, hoping someone can tell me why