Skip to content

Commit 88e1b79

Browse files
committed
POP Function
1 parent d687444 commit 88e1b79

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

List.ipynb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,25 @@
424424
"print(list1)"
425425
]
426426
},
427+
{
428+
"cell_type": "code",
429+
"execution_count": 26,
430+
"metadata": {},
431+
"outputs": [
432+
{
433+
"name": "stdout",
434+
"output_type": "stream",
435+
"text": [
436+
"['apple', 'banana']\n"
437+
]
438+
}
439+
],
440+
"source": [
441+
"thislist = [\"apple\", \"banana\", \"cherry\"]\n",
442+
"thislist.pop()\n",
443+
"print(thislist)"
444+
]
445+
},
427446
{
428447
"cell_type": "code",
429448
"execution_count": null,

0 commit comments

Comments
 (0)