Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get elements from list of dictionaries

dct = {"Id": 1, "Name": "Suresh", "Location": "Hyderabad"}
uid = dct["Id"]
name = dct["Name"]
location = dct["Location"]
print("Id = {}, Name = {}, Location = {}".format(uid, name, location))
Source by www.tutlane.com #
 
PREVIOUS NEXT
Tagged: #python #elements #list #dictionaries
ADD COMMENT
Topic
Name
7+7 =