Skip to content

Commit

Permalink
Update Doc/tutorial/inputoutput.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
paulreece and AA-Turner committed Jun 13, 2022
1 parent 4f919a7 commit 59a4c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/tutorial/inputoutput.rst
Expand Up @@ -179,7 +179,8 @@ 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`` dictionary 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 59a4c0d

Please sign in to comment.