|
@@ -2427,7 +2427,9 @@
|
|
|
}
|
|
|
},
|
|
|
"source": [
|
|
|
- "## Ex 1. Create an array containing integers from $2$ to $2^6$\n"
|
|
|
+ "## Ex 1.1\n",
|
|
|
+ "\n",
|
|
|
+ "Create an array containing integers from $2$ to $2^6$\n"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -2450,7 +2452,9 @@
|
|
|
}
|
|
|
},
|
|
|
"source": [
|
|
|
- "## 1.1 Print `ndarray` attributes and properties\n",
|
|
|
+ "## Ex 1.2 \n",
|
|
|
+ "\n",
|
|
|
+ "Print `ndarray` attributes and properties\n",
|
|
|
"(e.g. `type`, `dtype`, `shape...`) using previous on"
|
|
|
]
|
|
|
},
|
|
@@ -2474,7 +2478,9 @@
|
|
|
}
|
|
|
},
|
|
|
"source": [
|
|
|
- "## Ex 2. Create a 3x3 Matrix array and fill it with random integer numbers\n",
|
|
|
+ "## Ex 1.3\n",
|
|
|
+ "\n",
|
|
|
+ "Create a 3x3 Matrix array and fill it with random integer numbers\n",
|
|
|
"\n",
|
|
|
"- _hint_: Take a look at `np.random.randint`"
|
|
|
]
|
|
@@ -2499,7 +2505,9 @@
|
|
|
}
|
|
|
},
|
|
|
"source": [
|
|
|
- "## Ex3. Create a list containing $5$ others lists of integers, all of the same size. Convert this list of lists into a matrix (i.e. `numpy.ndarray`)\n"
|
|
|
+ "## Ex 1.4\n",
|
|
|
+ "\n",
|
|
|
+ "Create a list containing $5$ others lists of integers, all of the same size. Convert this list of lists into a matrix (i.e. `numpy.ndarray`)\n"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -2518,7 +2526,9 @@
|
|
|
"cell_type": "markdown",
|
|
|
"metadata": {},
|
|
|
"source": [
|
|
|
- "#### Ex 3.1 What happens if we generate an array converting a list of lists of different size/length?"
|
|
|
+ "## Ex 1.5\n",
|
|
|
+ "\n",
|
|
|
+ "What happens if we generate an array converting a list of lists of different lengths?"
|
|
|
]
|
|
|
},
|
|
|
{
|