mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 13:38:38 +01:00
Merge pull request #2842 from ian-bertolacci/patch-1
[python/en] Correct a variable name
This commit is contained in:
commit
2a3fbe26b6
@ -302,7 +302,7 @@ filled_dict.values() # => [3, 2, 1]
|
|||||||
# Note - Same as above regarding key ordering.
|
# Note - Same as above regarding key ordering.
|
||||||
|
|
||||||
# Get all key-value pairs as a list of tuples with "items()"
|
# Get all key-value pairs as a list of tuples with "items()"
|
||||||
filled_dicts.items() # => [("one", 1), ("two", 2), ("three", 3)]
|
filled_dict.items() # => [("one", 1), ("two", 2), ("three", 3)]
|
||||||
|
|
||||||
# Check for existence of keys in a dictionary with "in"
|
# Check for existence of keys in a dictionary with "in"
|
||||||
"one" in filled_dict # => True
|
"one" in filled_dict # => True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user