Issue #16265: Fix collapsing of code sample in tutorial.

Thanks to Yongzhi Pan from docs@
This commit is contained in:
Andrew Svetlov 2012-10-17 16:41:28 +03:00
parent 45bb613e25
commit e9cf97cf20
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
'Dcab: {0[Dcab]:d}'.format(table))
... '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 '**'