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

Skip to content

Commit 8f96f77

Browse files
committed
Fixed dictionary example to use commas instead of semicolons.
(This was actually a bug in the interpreter!)
1 parent 92fba02 commit 8f96f77

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/tut.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,13 +1075,13 @@ \section{Dictionaries}
10751075
>>> tel = {'jack': 4098, 'sape': 4139}
10761076
>>> tel['guido'] = 4127
10771077
>>> tel
1078-
{'sape': 4139; 'guido': 4127; 'jack': 4098}
1078+
{'sape': 4139, 'guido': 4127, 'jack': 4098}
10791079
>>> tel['jack']
10801080
4098
10811081
>>> del tel['sape']
10821082
>>> tel['irv'] = 4127
10831083
>>> tel
1084-
{'guido': 4127; 'irv': 4127; 'jack': 4098}
1084+
{'guido': 4127, 'irv': 4127, 'jack': 4098}
10851085
>>> tel.keys()
10861086
['guido', 'irv', 'jack']
10871087
>>> tel.has_key('guido')

Doc/tut/tut.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,13 +1075,13 @@ \section{Dictionaries}
10751075
>>> tel = {'jack': 4098, 'sape': 4139}
10761076
>>> tel['guido'] = 4127
10771077
>>> tel
1078-
{'sape': 4139; 'guido': 4127; 'jack': 4098}
1078+
{'sape': 4139, 'guido': 4127, 'jack': 4098}
10791079
>>> tel['jack']
10801080
4098
10811081
>>> del tel['sape']
10821082
>>> tel['irv'] = 4127
10831083
>>> tel
1084-
{'guido': 4127; 'irv': 4127; 'jack': 4098}
1084+
{'guido': 4127, 'irv': 4127, 'jack': 4098}
10851085
>>> tel.keys()
10861086
['guido', 'irv', 'jack']
10871087
>>> tel.has_key('guido')

0 commit comments

Comments
 (0)