Skip to content

Commit bb0f686

Browse files
committed
added
1 parent 54f07d1 commit bb0f686

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

functions.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"print(sorted(a), sorted(b), sorted(c.values())); # sort list and tuple and create a new list\n",
4949
"print(sorted(c.keys()));\n",
5050
"a.sort(); # sort list tuple only without creating a new list\n",
51-
"print(a)"
51+
"print(a);\n"
5252
]
5353
},
5454
{

numpy.ipynb

+14-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": null,
49+
"execution_count": 3,
5050
"id": "ee850ea3",
5151
"metadata": {},
5252
"outputs": [
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 3,
86+
"execution_count": 4,
8787
"id": "0ea22950",
8888
"metadata": {},
8989
"outputs": [
@@ -92,9 +92,9 @@
9292
"output_type": "stream",
9393
"text": [
9494
"Random Matrix:\n",
95-
" [[0.79407155 0.11131069 0.84472858]\n",
96-
" [0.13567947 0.23658784 0.59871416]\n",
97-
" [0.13097096 0.09200227 0.62746072]]\n",
95+
" [[0.48194432 0.28769071 0.51659156]\n",
96+
" [0.19471156 0.37474759 0.33213113]\n",
97+
" [0.27002499 0.29515092 0.88684183]]\n",
9898
"Reshaped Array:\n",
9999
" [[0 1 2]\n",
100100
" [3 4 5]\n",
@@ -116,7 +116,7 @@
116116
},
117117
{
118118
"cell_type": "code",
119-
"execution_count": 1,
119+
"execution_count": 5,
120120
"id": "d5221230",
121121
"metadata": {},
122122
"outputs": [
@@ -141,7 +141,13 @@
141141
"id": "3edfca04",
142142
"metadata": {},
143143
"outputs": [],
144-
"source": []
144+
"source": [
145+
"import numpy as ss;\n",
146+
"arr1 = ss.array([2,3,4,5,5]);\n",
147+
"for i in range (len(arr1)):\n",
148+
" if i==1 :\n",
149+
" print(arr1[i])\n"
150+
]
145151
}
146152
],
147153
"metadata": {
@@ -160,7 +166,7 @@
160166
"name": "python",
161167
"nbconvert_exporter": "python",
162168
"pygments_lexer": "ipython3",
163-
"version": "3.13.2"
169+
"version": "3.12.4"
164170
}
165171
},
166172
"nbformat": 4,

0 commit comments

Comments
 (0)