We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff6bbbb commit b411f69Copy full SHA for b411f69
1 file changed
README.md
@@ -51,7 +51,7 @@ Additional links:
51
4.0
52
>>> 4 / 2
53
2.0
54
->>> 4 // 2 # `//` is the integer division
+>>> 5 // 2 # `//` is the integer division
55
2
56
>>> 3 % 2
57
1
@@ -362,7 +362,9 @@ True
362
>>> s.remove(1)
363
>>> s
364
{2, 'a'}
365
->>> s.remove(1) # KeyError: 1
+>>> s.remove(1) # `KeyError: 1`
366
+>>> s.pop() # Remove and return an arbitrary element from the set
367
+2
368
369
>>> s0 = {1, 2, 'a'}
370
>>> s0
@@ -423,7 +425,7 @@ False
423
425
>>> d
424
426
{'a': 'hello, world!', 'b': 11, 1: 'a new element'}
427
->>> d[0] += 10 # KeyError: 0
428
+>>> d[0] += 10 # `KeyError: 0`
429
>>> d.get(0, 1) # Return `1` as default value since key `0` does not exist
430
431
>>> d.get(1, '?') # Key `1` exists, so the actual value will be returned
0 commit comments