Att Dictionary Keys
# Python2.x Python Dictionary keys() Method
[ Python Dictionary](#)
* * *
## Description
The Python Dictionary keys() function returns a list of all the keys in a dictionary.
## Syntax
The syntax for the keys() method is:
dict.keys()
## Parameters
* NA.
## Return Value
Returns a list of all the keys in the dictionary.
## Example
The following example demonstrates the usage of the keys() function:
## Example
#!/usr/bin/python
tinydict ={'Name': 'Zara','Age': 7}
print"Value : %s" % tinydict.keys()
The output of the above example is:
Value : ['Age', 'Name']
[ Python Dictionary](#)
YouTip