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 e9bea89 commit 0f52f6fCopy full SHA for 0f52f6f
Tuples.ipynb
@@ -146,6 +146,30 @@
146
"print(thistuple[2:5])"
147
]
148
},
149
+ {
150
+ "cell_type": "code",
151
+ "execution_count": 13,
152
+ "metadata": {},
153
+ "outputs": [
154
155
+ "name": "stdout",
156
+ "output_type": "stream",
157
+ "text": [
158
+ "['apple', 'kiwi', 'cherry']\n",
159
+ "('apple', 'kiwi', 'cherry')\n"
160
+ ]
161
+ }
162
+ ],
163
+ "source": [
164
+ "x = (\"apple\", \"banana\", \"cherry\")\n",
165
+ "y = list(x)\n",
166
+ "y[1] = \"kiwi\"\n",
167
+ "x = tuple(y)\n",
168
+ "\n",
169
+ "print(y)\n",
170
+ "print(x)"
171
172
+ },
173
{
174
"cell_type": "code",
175
"execution_count": null,
0 commit comments