From 031c0c84f60a12d5ca8a477ff039c361d3e7b788 Mon Sep 17 00:00:00 2001 From: rigueti-bruno Date: Sat, 29 Jun 2024 09:59:03 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Desafios.ipynb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Desafios.ipynb b/Desafios.ipynb index 0fc4f6d..1283aad 100755 --- a/Desafios.ipynb +++ b/Desafios.ipynb @@ -821,6 +821,27 @@ "b = 4**3**2\n", "print(a,b,z)" ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "inmutable\n" + ] + } + ], + "source": [ + "s = 'immutable'\n", + "s = [i for i in s]\n", + "s[1] = 'n'\n", + "s = ''.join(s)\n", + "print(s)" + ] } ], "metadata": {