This class method returns a list of all the available keys in the dictionary.
dict.keys()
Here is the detail of parameters:
NA
#!/usr/bin/python dict = {'Name': 'Zara', 'Age': 7} print "Value : %s" % dict.keys()
This produces following result:
Value : ['Age', 'Name']
Advertisement