Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c131b07 commit a20879fCopy full SHA for a20879f
1 file changed
Doc/library/stdtypes.rst
@@ -2137,13 +2137,13 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
2137
replaces the value from the positional argument.
2138
2139
To illustrate, the following examples all return a dictionary equal to
2140
- ``{"one": 1, "two": 2}``::
+ ``{"one": 1, "two": 2, "three": 3}``::
2141
2142
- >>> a = dict(one=1, two=2)
2143
- >>> b = dict({'one': 1, 'two': 2})
2144
- >>> c = dict(zip(('one', 'two'), (1, 2)))
2145
- >>> d = dict([['two', 2], ['one', 1]])
2146
- >>> e = {"one": 1, "two": 2}
+ >>> a = dict(one=1, two=2, three=3)
+ >>> b = {'one': 1, 'two': 2, 'three': 3}
+ >>> c = dict(zip(['one', 'two', 'three'], [1, 2, 3]))
+ >>> d = dict([('two', 2), ('one', 1), ('three', 3)])
+ >>> e = dict({'three': 3, 'one': 1, 'two': 2})
2147
>>> a == b == c == d == e
2148
True
2149
0 commit comments