Home
Random
Log in
Settings
About David's Wiki
Disclaimers
David's Wiki
Search
Python: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Python
(view source)
Revision as of 18:09, 22 January 2020
120 bytes added
,
22 January 2020
→Dictionaries
Revision as of 14:08, 22 January 2020
(
view source
)
David
(
talk
|
contribs
)
(
→Dictionaries
)
← Older edit
Revision as of 18:09, 22 January 2020
(
view source
)
David
(
talk
|
contribs
)
(
→Dictionaries
)
Newer edit →
Line 236:
Line 236:
# O(n)
# O(n)
'a' in d.values()
'a' in d.values()
# Loop through dictionary
for k in my_map:
print(k)
# With key and value
for k, v in my_map.items():
print(k, v)
</syntaxhighlight>
</syntaxhighlight>
David
Bureaucrats
,
Interface administrators
,
Administrators
5,321
edits