diff options
author | ven <vendethiel@hotmail.fr> | 2016-01-11 19:07:41 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-01-11 19:07:41 +0100 |
commit | 7e069bef5d094169c24b7ee5cdd4757eb51e1da3 (patch) | |
tree | 8ce13e85896e93660cdfd88217714f10bea34700 | |
parent | 468460ab298be9595ea3136e184d5d779abd846e (diff) | |
parent | 15a7e7ace2e61470c5b0de667d33d06a1223ba46 (diff) |
Merge pull request #2096 from SWalls/master
[python/en] Changed a to b in comment about list assignment, and pluralized 'vari...
-rw-r--r-- | python3.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index 8cc03320..31b5bbe1 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -97,13 +97,13 @@ False or True # => True 1 < 2 < 3 # => True 2 < 3 < 2 # => False -# (is vs. ==) is checks if two variable refer to the same object, but == checks +# (is vs. ==) is checks if two variables refer to the same object, but == checks # if the objects pointed to have the same values. a = [1, 2, 3, 4] # Point a at a new list, [1, 2, 3, 4] b = a # Point b at what a is pointing to b is a # => True, a and b refer to the same object b == a # => True, a's and b's objects are equal -b = [1, 2, 3, 4] # Point a at a new list, [1, 2, 3, 4] +b = [1, 2, 3, 4] # Point b at a new list, [1, 2, 3, 4] b is a # => False, a and b do not refer to the same object b == a # => True, a's and b's objects are equal |