Skip to content

Commit

Permalink
changed the inputoutput docs to reflect the more specific wording men…
Browse files Browse the repository at this point in the history
…tioned in the issue discussion
  • Loading branch information
paulreece committed Jun 13, 2022
1 parent 259dd71 commit 4f919a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Doc/tutorial/inputoutput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ square brackets ``'[]'`` to access the keys. ::
... 'Dcab: {0[Dcab]:d}'.format(table))
Jack: 4098; Sjoerd: 4127; Dcab: 8637678

This could also be done by passing the table as keyword arguments with the '**'
notation. ::
This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**`` notation. ::

>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table))
Expand Down

0 comments on commit 4f919a7

Please sign in to comment.