Skip to content

Commit

Permalink
updating
Browse files Browse the repository at this point in the history
  • Loading branch information
vnikoofard committed May 29, 2020
1 parent e457e1c commit 081be6a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 23 deletions.
6 changes: 6 additions & 0 deletions aulas/.ipynb_checkpoints/aula_10-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
6 changes: 6 additions & 0 deletions aulas/aula_10.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
67 changes: 44 additions & 23 deletions python_pratico.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8861,28 +8861,27 @@
},
{
"cell_type": "code",
"execution_count": 62,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"b = [[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]], [[13,14,15],[16,17,18]]]\n",
"b = [[[1,2,3,4],[5,6,7,8],[9,10,11,12]],[[13,14,15,16],[17,18,19,20],[21,22,23,24]]]\n",
"arr1 = np.array(b)"
]
},
{
"cell_type": "code",
"execution_count": 63,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[[[1, 2, 3], [4, 5, 6]],\n",
" [[7, 8, 9], [10, 11, 12]],\n",
" [[13, 14, 15], [16, 17, 18]]]"
"[[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]],\n",
" [[13, 14, 15, 16], [17, 18, 19, 20], [21, 22, 23, 24]]]"
]
},
"execution_count": 63,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -8907,16 +8906,16 @@
},
{
"cell_type": "code",
"execution_count": 65,
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(3, 2, 3)"
"(2, 3, 4)"
]
},
"execution_count": 65,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -8934,17 +8933,18 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1, 2, 3],\n",
" [4, 5, 6]])"
"array([[ 1, 2, 3, 4],\n",
" [ 5, 6, 7, 8],\n",
" [ 9, 10, 11, 12]])"
]
},
"execution_count": 66,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -8955,42 +8955,63 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 7, 8, 9],\n",
" [10, 11, 12]])"
"(3, 4)"
]
},
"execution_count": 67,
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"arr1[1]"
"arr1[0].shape"
]
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[13, 14, 15],\n",
" [16, 17, 18]])"
"array([[13, 14, 15, 16],\n",
" [17, 18, 19, 20],\n",
" [21, 22, 23, 24]])"
]
},
"execution_count": 68,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"arr1[1]"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"ename": "IndexError",
"evalue": "index 2 is out of bounds for axis 0 with size 2",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-20-7a6a97c7ac35>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0marr1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m: index 2 is out of bounds for axis 0 with size 2"
]
}
],
"source": [
"arr1[2]"
]
Expand Down

0 comments on commit 081be6a

Please sign in to comment.