Skip to content

Commit f9746c4

Browse files
committed
Set POP()
1 parent 8c4a425 commit f9746c4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Sets.ipynb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,30 @@
8787
"print(s)"
8888
]
8989
},
90+
{
91+
"cell_type": "code",
92+
"execution_count": 5,
93+
"metadata": {},
94+
"outputs": [
95+
{
96+
"name": "stdout",
97+
"output_type": "stream",
98+
"text": [
99+
"cherry\n",
100+
"{'banana', 'apple'}\n"
101+
]
102+
}
103+
],
104+
"source": [
105+
"thisset = {\"apple\", \"banana\", \"cherry\"}\n",
106+
"\n",
107+
"x = thisset.pop()\n",
108+
"\n",
109+
"print(x)\n",
110+
"\n",
111+
"print(thisset)"
112+
]
113+
},
90114
{
91115
"cell_type": "code",
92116
"execution_count": null,

0 commit comments

Comments
 (0)