I've got a piece of code that executes a function, and then based on that output decides if it should reiterate:
while (function_output) > tolerance:
function_output = function(x)
The problem is that the while loop won't start until "function_output" is defined - but it's defined in the loop. Currenly I've got:
function_output = function(x)
while (function_output) > tolerance:
function_output = function(x)
but is there a way to get this loop to start without having to iterate the function once already?