"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# NumPy Exercises - Solutions\n",
"\n",
"Now that we've learned about NumPy let's test your knowledge. We'll start off with a few simple tasks and then you'll be asked some more complicated questions.\n",
"\n",
"
IMPORTANT NOTE! Make sure you don't run the cells directly above the example output shown, otherwise you will end up writing over the example output!
NOTE: Your result's value should be different from the one shown below."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0.65248055])"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# DON'T WRITE HERE\n",
"np.random.rand(1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 10. Use NumPy to generate an array of 25 random numbers sampled from a standard normal distribution