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