Skip to content

Commit

Permalink
Fix sentence grammar
Browse files Browse the repository at this point in the history
Thanks to John Thomas.
  • Loading branch information
swaroopch authored Jul 15, 2021
1 parent 07a59b6 commit 36689cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 36689cc

Please sign in to comment.