Hello!
Perhaps there are cases when importing a module inside a function is reasonable but I think this in not one.
Well, if you answer 'no', the loop will never stop. You don't change the value of a1 anywhere inside the loop so its condition will return True every time.
Perhaps there are cases when importing a module inside a function is reasonable but I think this in not one.
Well, if you answer 'no', the loop will never stop. You don't change the value of a1 anywhere inside the loop so its condition will return True every time.