Articles → Python → Dictionary Values Function In Python

Dictionary Values Function In Python






Code


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


# Convert to list and print list of keys
print("List of values", list(dict.values()))



Output


Picture showing the output of Dictionary Values function in python



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, April 4, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250