From 133aa2d273ce1769065f3ff658a11b325d74ecf2 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Wed, 3 Jul 2024 05:33:55 +0530 Subject: [PATCH] Remove unused code. --- examples/tutorial/powers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/tutorial/powers.py b/examples/tutorial/powers.py index 033e034..fce4268 100644 --- a/examples/tutorial/powers.py +++ b/examples/tutorial/powers.py @@ -7,9 +7,6 @@ def compute_powers(r_max, power): """Compute the powers of the integers upto r_max and return the result. """ - result = [] - for i in range(0, r_max + 1): - result.append((i, i**power)) x = np.arange(0, r_max + 1) y = np.power(x, power) return x, y