how to get values from list of dictionaries in python code example
Example 1: 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))
Example 2: dict get list of values
list(d.values())