Skip to content

Commit e9bea89

Browse files
committed
Slicing
1 parent 0389e7f commit e9bea89

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Tuples.ipynb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,24 @@
128128
"print(thistuple[2:5])"
129129
]
130130
},
131+
{
132+
"cell_type": "code",
133+
"execution_count": 11,
134+
"metadata": {},
135+
"outputs": [
136+
{
137+
"name": "stdout",
138+
"output_type": "stream",
139+
"text": [
140+
"('cherry', 'orange', 'kiwi')\n"
141+
]
142+
}
143+
],
144+
"source": [
145+
"thistuple = (\"apple\", \"banana\", \"cherry\", \"orange\", \"kiwi\", \"melon\", \"mango\")\n",
146+
"print(thistuple[2:5])"
147+
]
148+
},
131149
{
132150
"cell_type": "code",
133151
"execution_count": null,

0 commit comments

Comments
 (0)