From d15b47d5a0a58515b64e2f57d4b6ab2b86e404be Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Wed, 5 Feb 2025 16:53:27 -0700 Subject: Renamed tutorials and updated links in tutorial/readme.md --- tutorials/3.x_arrays.md | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tutorials/3.x_arrays.md (limited to 'tutorials/3.x_arrays.md') diff --git a/tutorials/3.x_arrays.md b/tutorials/3.x_arrays.md deleted file mode 100644 index e698d67..0000000 --- a/tutorials/3.x_arrays.md +++ /dev/null @@ -1,35 +0,0 @@ -# Arrays - -In computer programming, an array is a structure for storing and retrieving data. We often talk about an array as if it were a grid in space, with each cell storing one element of the data. For instance, if each element of the data were a number, we might visualize a “one-dimensional” array like a list: - -| 1 | 5 | 2 | 0 | - -A two-dimensional array would be like a table: - -| 1 | 5 | 2 | 0 | -| 8 | 3 | 6 | 1 | -| 1 | 7 | 2 | 9 | - -A three-dimensional array would be like a set of tables, perhaps stacked as though they were printed on separate pages. - -- From [Numpy documentation](https://numpy.org/doc/2.2/user/absolute_beginners.html) - ---- - -In this tutorial we will be introducing arrays and we will be using the numpy library. Arrays, lists, vectors, matrices, sets - You might've heard of them before, they all store data. In programming, an array is a variable that can hold more than one value at a time. We will be using the Numpy python library to create arrays. - -Since we already have installed Numpy previously, we can start using the package. - -## Import Numpy -When using packages in python, we need to let it know what package we will be using. This is called importing. To import numpy we need to declare it a the start of a script as follows: -``` -import numpy as np -``` - import calls for a library to use, in our case it is Numpy. - as gives the library an alias in your script. It's common convention in Python programming to make the code shorter and more readable. We will be using *np* as it's a standard using in many projects. - -# Creating arrays -Now that the script has been -``` - -``` -- cgit v1.2.3