3 examples of 'python dictionary keys' in Python

Every line of 'python dictionary keys' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
210def viewkeys(self): # real signature unknown; restored from __doc__
211 """ D.viewkeys() -> a set-like object providing a view on D's keys """
212 pass
30def keys(dict):
31 """Returns an iterable object for the keys in a dictionary."""
32 return dict.keys()
8def keys(d):
9 return d.iterkeys()

Related snippets