mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Fix typo
This commit is contained in:
parent
ea929d6094
commit
28fcbc8e1c
@ -264,7 +264,7 @@ filled_dict.get("four") # => None
|
|||||||
# The get method supports a default argument when the value is missing
|
# The get method supports a default argument when the value is missing
|
||||||
filled_dict.get("one", 4) # => 1
|
filled_dict.get("one", 4) # => 1
|
||||||
filled_dict.get("four", 4) # => 4
|
filled_dict.get("four", 4) # => 4
|
||||||
# note that filled_dict.get("four") is still => 4
|
# note that filled_dict.get("four") is still => None
|
||||||
# (get doesn't set the value in the dictionary)
|
# (get doesn't set the value in the dictionary)
|
||||||
|
|
||||||
# set the value of a key with a syntax similar to lists
|
# set the value of a key with a syntax similar to lists
|
||||||
|
Loading…
Reference in New Issue
Block a user