Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
1+2 =