Skip to content

Commit e17e99a

Browse files
committed
Update execution count and odds list in Python_Class.ipynb
1 parent 48be3d5 commit e17e99a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python_Class.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@
14291429
},
14301430
{
14311431
"cell_type": "code",
1432-
"execution_count": 12,
1432+
"execution_count": 2,
14331433
"metadata": {},
14341434
"outputs": [
14351435
{
@@ -1438,16 +1438,16 @@
14381438
"text": [
14391439
"[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]\n",
14401440
"[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]\n",
1441-
"[20, 18, 16, 14, 12, 10, 8, 6, 4, 2]\n",
1442-
"[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 20, 18, 16, 14, 12, 10, 8, 6, 4, 2]\n"
1441+
"[19, 17, 15, 13, 11, 9, 7, 5, 3, 1]\n",
1442+
"[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 19, 17, 15, 13, 11, 9, 7, 5, 3, 1]\n"
14431443
]
14441444
}
14451445
],
14461446
"source": [
14471447
"\n",
14481448
"numbers = list(range(21))\n",
14491449
"evens = numbers[::2]\n",
1450-
"odds = numbers[20:0:-2]\n",
1450+
"odds = numbers[19::-2]\n",
14511451
"\n",
14521452
"final_list = evens + odds\n",
14531453
"\n",

0 commit comments

Comments
 (0)