From d857869c06c7c2e6110bb602168875a92c4265b3 Mon Sep 17 00:00:00 2001 From: jgdiaz Date: Wed, 6 Feb 2019 19:08:19 +0100 Subject: [PATCH] format replace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit En la celda después de explicar format, pone que se sustituye [] cuando debería ser {} --- python/1_6_Functions.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/1_6_Functions.ipynb b/python/1_6_Functions.ipynb index aa89d6b..83a2632 100644 --- a/python/1_6_Functions.ipynb +++ b/python/1_6_Functions.ipynb @@ -291,7 +291,7 @@ "outputs": [], "source": [ "import math\n", - "print('Number: {},{}'.format(1, 2)) #replaces [] inside the string by the arguments of format\n", + "print('Number: {},{}'.format(1, 2)) #replaces {} inside the string by the arguments of format\n", "print('PI #{}#'.format(math.pi))\n", "print('PI #{:5.2f}#'.format(math.pi)) # at least 5 characters with two decimals" ]