We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fea648 commit d8b4078Copy full SHA for d8b4078
Doc/tutorial/datastructures.rst
@@ -514,7 +514,7 @@ extracting the value given the key. It is also possible to delete a key:value
514
pair with ``del``. If you store using a key that is already in use, the old
515
value associated with that key is forgotten.
516
517
-Extracting value for a non-existent key by subscripting (``d[key]``) raises
+Extracting a value for a non-existent key by subscripting (``d[key]``) raises a
518
:exc:`KeyError`. To avoid getting this error when trying to access a possibly
519
non-existent key, use the :meth:`~dict.get` method instead, which returns
520
``None`` (or a specified default value) if the key is not in the dictionary.
0 commit comments