From 699525a9c9ee991e2a397712aa885270eab136bf Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Thu, 5 Jan 2023 15:39:04 -0800 Subject: [PATCH] STY: Idiomatic use of arange. 0 and 1 are the default start and step respectively, so no need to explicitly include them. --- content/save-load-arrays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/save-load-arrays.md b/content/save-load-arrays.md index 1960d0de..434c7370 100644 --- a/content/save-load-arrays.md +++ b/content/save-load-arrays.md @@ -68,7 +68,7 @@ will assign `x` to the integers from 0 to 9 using [`np.arange`](https://numpy.org/doc/stable/reference/generated/numpy.arange.html). ```{code-cell} -x = np.arange(0, 10, 1) +x = np.arange(10) y = x ** 2 print(x) print(y)