In our homework's specifications, it is noted that our recursive function must be defined in the "outermost level"
is it correct to assume that it therefore must be declared in the global scope?
my question is, does a class count as an 'inner level' from the global scope, and in that case, if I declare my recursive function as a method of that class, will it not be counted as such?
is it correct to assume that it therefore must be declared in the global scope?
my question is, does a class count as an 'inner level' from the global scope, and in that case, if I declare my recursive function as a method of that class, will it not be counted as such?