mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.11] gh-93240: clarify wording in IO tutorial (GH-93276) (GH-94082)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit 51d673176a
)
Co-authored-by: paulreece <96156234+paulreece@users.noreply.github.com>
This commit is contained in:
parent
b1b0656805
commit
c76e6f745c
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ square brackets ``'[]'`` to access the keys. ::
|
||||||
... 'Dcab: {0[Dcab]:d}'.format(table))
|
... 'Dcab: {0[Dcab]:d}'.format(table))
|
||||||
Jack: 4098; Sjoerd: 4127; Dcab: 8637678
|
Jack: 4098; Sjoerd: 4127; Dcab: 8637678
|
||||||
|
|
||||||
This could also be done by passing the table as keyword arguments with the '**'
|
This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**``
|
||||||
notation. ::
|
notation. ::
|
||||||
|
|
||||||
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
|
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue