Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 148 additions & 42 deletions your-code/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T11:07:38.253777Z",
"start_time": "2025-10-07T11:07:38.226627Z"
}
},
"source": [
"import os"
]
],
"outputs": [],
"execution_count": 1
},
{
"cell_type": "markdown",
Expand All @@ -27,12 +32,26 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T11:57:54.128620Z",
"start_time": "2025-10-07T11:57:54.034390Z"
}
},
"source": [
"#your code here"
]
"list=[num for num in range(1,51)]\n",
"print(list)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]\n"
]
}
],
"execution_count": 4
},
{
"cell_type": "markdown",
Expand All @@ -43,12 +62,26 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T12:01:50.822494Z",
"start_time": "2025-10-07T12:01:48.456931Z"
}
},
"source": [
"#your code here"
]
"even_numbers=[num for num in range(2,201) if num%2==0]\n",
"print(even_numbers)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200]\n"
]
}
],
"execution_count": 5
},
{
"cell_type": "markdown",
Expand All @@ -59,9 +92,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T12:09:38.244460Z",
"start_time": "2025-10-07T12:09:38.218353Z"
}
},
"source": [
"a = [[0.84062117, 0.48006452, 0.7876326 , 0.77109654],\n",
" [0.44409793, 0.09014516, 0.81835917, 0.87645456],\n",
Expand All @@ -73,16 +109,32 @@
" [0.20754036, 0.57871812, 0.07214068, 0.40356048],\n",
" [0.12149553, 0.53222417, 0.9976855 , 0.12536346],\n",
" [0.80930099, 0.50962849, 0.94555126, 0.33364763]];"
]
],
"outputs": [],
"execution_count": 7
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T12:16:38.359597Z",
"start_time": "2025-10-07T12:16:38.341013Z"
}
},
"source": [
"#your code here"
]
"list=[n for ls in a for n in ls]\n",
"print(list)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.84062117, 0.48006452, 0.7876326, 0.77109654, 0.44409793, 0.09014516, 0.81835917, 0.87645456, 0.7066597, 0.09610873, 0.41247947, 0.57433389, 0.29960807, 0.42315023, 0.34452557, 0.4751035, 0.17003563, 0.46843998, 0.92796258, 0.69814654, 0.41290051, 0.19561071, 0.16284783, 0.97016248, 0.71725408, 0.87702738, 0.31244595, 0.76615487, 0.20754036, 0.57871812, 0.07214068, 0.40356048, 0.12149553, 0.53222417, 0.9976855, 0.12536346, 0.80930099, 0.50962849, 0.94555126, 0.33364763]\n"
]
}
],
"execution_count": 13
},
{
"cell_type": "markdown",
Expand All @@ -93,12 +145,26 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T12:17:11.205270Z",
"start_time": "2025-10-07T12:17:11.176650Z"
}
},
"source": [
"#your code here"
]
"list=[n for ls in a for n in ls if n>=0.5 ]\n",
"print(list)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.84062117, 0.7876326, 0.77109654, 0.81835917, 0.87645456, 0.7066597, 0.57433389, 0.92796258, 0.69814654, 0.97016248, 0.71725408, 0.87702738, 0.76615487, 0.57871812, 0.53222417, 0.9976855, 0.80930099, 0.50962849, 0.94555126]\n"
]
}
],
"execution_count": 14
},
{
"cell_type": "markdown",
Expand All @@ -109,9 +175,12 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T14:01:56.912258Z",
"start_time": "2025-10-07T14:01:56.702237Z"
}
},
"source": [
"b = [[[0.55867166, 0.06210792, 0.08147297],\n",
" [0.82579068, 0.91512478, 0.06833034]],\n",
Expand All @@ -127,16 +196,32 @@
"\n",
" [[0.07529684, 0.46470767, 0.47984544],\n",
" [0.65368638, 0.14901286, 0.23760688]]];"
]
],
"outputs": [],
"execution_count": 16
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T14:07:24.366878Z",
"start_time": "2025-10-07T14:07:24.335479Z"
}
},
"source": [
"#your code here"
]
"list=[k for i in b for j in i for k in j]\n",
"print(list)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.55867166, 0.06210792, 0.08147297, 0.82579068, 0.91512478, 0.06833034, 0.05440634, 0.65857693, 0.30296619, 0.06769833, 0.96031863, 0.51293743, 0.09143215, 0.71893382, 0.45850679, 0.58256464, 0.59005654, 0.56266457, 0.71600294, 0.87392666, 0.11434044, 0.8694668, 0.65669313, 0.10708681, 0.07529684, 0.46470767, 0.47984544, 0.65368638, 0.14901286, 0.23760688]\n"
]
}
],
"execution_count": 21
},
{
"cell_type": "markdown",
Expand All @@ -147,12 +232,26 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"metadata": {
"ExecuteTime": {
"end_time": "2025-10-07T14:19:08.230336Z",
"start_time": "2025-10-07T14:19:08.195832Z"
}
},
"source": [
"#your code here"
]
"list=[k for i in b for j in i for k in j if j[-1]<=0.5]\n",
"print(list)"
],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.55867166, 0.06210792, 0.08147297, 0.82579068, 0.91512478, 0.06833034, 0.05440634, 0.65857693, 0.30296619, 0.09143215, 0.71893382, 0.45850679, 0.71600294, 0.87392666, 0.11434044, 0.8694668, 0.65669313, 0.10708681, 0.07529684, 0.46470767, 0.47984544, 0.65368638, 0.14901286, 0.23760688]\n"
]
}
],
"execution_count": 26
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -187,6 +286,13 @@
"**Advanced**\n",
"- [Queue time counter](https://www.codewars.com/kata/queue-time-counter)"
]
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": ""
}
],
"metadata": {
Expand Down