From 36689cc40c2ccf854ed2e1bc9a1d37875f7433ad Mon Sep 17 00:00:00 2001 From: Swaroop CH Date: Thu, 15 Jul 2021 07:32:15 -0700 Subject: [PATCH] Fix sentence grammar Thanks to John Thomas. --- basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics.md b/basics.md index 3729a1ff..4ab938f8 100644 --- a/basics.md +++ b/basics.md @@ -127,7 +127,7 @@ Notice that we could have achieved the same using string concatenation: name + ' is ' + str(age) + ' years old' ``` -but that is much uglier and error-prone. Second, the conversion to string would be done automatically by the `format` method instead of the explicit conversion to strings needed in this case. Third, when using the `format` method, we can change the message without having to deal with the variables used and vice-versa. +but that is much uglier and more error-prone. Second, the conversion to string would be done automatically by the `format` method instead of the explicit conversion to strings needed in this case. Third, when using the `format` method, we can change the message without having to deal with the variables used and vice-versa. Also note that the numbers are optional, so you could have also written as: