We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430acb3 commit abfe9dcCopy full SHA for abfe9dc
Tuples.ipynb
@@ -191,6 +191,25 @@
191
" print(x)"
192
]
193
},
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
+ },
213
{
214
"cell_type": "code",
215
"execution_count": null,
0 commit comments