diff --git a/4_9_Exercises/Question 4.py b/4_9_Exercises/Question 4.py index 119f6177d51e8b9b3c2cbe406e1fd8dfcad77421..124d103c2d1967bec0d6520f6f0040f13c0baf30 100644 --- a/4_9_Exercises/Question 4.py +++ b/4_9_Exercises/Question 4.py @@ -18,7 +18,7 @@ def np(x, y): for pos in new_pos: if (pos not in current) and ((0 <= pos[0] <= x) and (0 <= pos[1] <= y)): trace.append(current + [pos]) - return final + return len(final) def np2(x, y, trace=None):