Help it won't work

def table(limit,number,min,skip):
    count=min
    while count<limit+1:
        result=number*count
        print(count ,'times',number,'equals',result)
        count += skip

In what way won’t it work?

it goes over the limit

What do you see, and what did you expect?

i expected it to break once it went over the limit and i saw i go far past the limit

oh thats what was wrong

why do i just randomly realize what was wrong?

What was wrong?

i thought result was count