Skip to content

Commit 53c6f91

Browse files
committed
Sets This Set
1 parent 9e882db commit 53c6f91

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Sets.ipynb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,27 @@
4747
"{1,2,3,1,2,1,2,3,3,3,3,2,2,2,1,1,2}"
4848
]
4949
},
50+
{
51+
"cell_type": "code",
52+
"execution_count": 3,
53+
"metadata": {},
54+
"outputs": [
55+
{
56+
"name": "stdout",
57+
"output_type": "stream",
58+
"text": [
59+
"{'banana', 'orange', 'mango', 'cherry', 'grapes', 'apple'}\n"
60+
]
61+
}
62+
],
63+
"source": [
64+
"thisset = {\"apple\", \"banana\", \"cherry\"}\n",
65+
"\n",
66+
"thisset.update([\"orange\", \"mango\", \"grapes\"])\n",
67+
"\n",
68+
"print(thisset)"
69+
]
70+
},
5071
{
5172
"cell_type": "code",
5273
"execution_count": null,

0 commit comments

Comments
 (0)