Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65b4b40

Browse files
committed
Merge issue #16265: Fix collapsing of code sample in tutorial.
Thanks to Yongzhi Pan from docs@
2 parents 016884c + e9cf97c commit 65b4b40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/inputoutput.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
184184

185185
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
186186
>>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
187-
'Dcab: {0[Dcab]:d}'.format(table))
187+
... 'Dcab: {0[Dcab]:d}'.format(table))
188188
Jack: 4098; Sjoerd: 4127; Dcab: 8637678
189189

190190
This could also be done by passing the table as keyword arguments with the '**'

0 commit comments

Comments
 (0)