Articles → Python → Dictionary Items Function In Python

Dictionary Items Function In Python






Purpose





Example


# A dictionary with 2 keys i.e. name and age
dict = {"name":"gyan", "age":18}

# Convert to list and print list of items
print("Items-", list(dict.items()))



Output


Picture showing the output of the Dictionary items function in python



Posted By  -  Karan Gupta
 
Posted On  -  Monday, April 8, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250