Skip to content

Commit abfe9dc

Browse files
committed
Check Tuple
1 parent 430acb3 commit abfe9dc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Tuples.ipynb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,25 @@
191191
" print(x)"
192192
]
193193
},
194+
{
195+
"cell_type": "code",
196+
"execution_count": 15,
197+
"metadata": {},
198+
"outputs": [
199+
{
200+
"name": "stdout",
201+
"output_type": "stream",
202+
"text": [
203+
"Yes, 'apple' is in the fruits tuple\n"
204+
]
205+
}
206+
],
207+
"source": [
208+
"thistuple = (\"apple\", \"banana\", \"cherry\")\n",
209+
"if \"apple\" in thistuple:\n",
210+
" print(\"Yes, 'apple' is in the fruits tuple\")"
211+
]
212+
},
194213
{
195214
"cell_type": "code",
196215
"execution_count": null,

0 commit comments

Comments
 (0)