diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2025-02-04 17:04:29 -0700 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2025-02-04 17:04:29 -0700 |
| commit | fa0c618f6deb6120dab8b7116156f10b14d7bea7 (patch) | |
| tree | acdb419778b364916f0093f9338c4962c0024778 /tutorials/3.x_arrays.md | |
| parent | 5d55f4f5857b93a2ea3f5d84a553451854d1222c (diff) | |
added array tutorial
Diffstat (limited to 'tutorials/3.x_arrays.md')
| -rw-r--r-- | tutorials/3.x_arrays.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tutorials/3.x_arrays.md b/tutorials/3.x_arrays.md new file mode 100644 index 0000000..57debfd --- /dev/null +++ b/tutorials/3.x_arrays.md @@ -0,0 +1,19 @@ +# Arrays + +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 +``` +<code> import numpy </code> specifies what library to import. +<code> as np </code> 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 +``` + +``` |
