Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Comparing items from 2 lists of dictionaries
Post: RE: Comparing items from 2 lists of dictionaries

(Sep-14-2020, 10:24 PM)bowlofred Wrote: listA = [{'name':'david'},{'name':'michael'},{'name':'todd'}] listB = [{'name':'sarah'},{'name':'david'},{'name':'james'}] namesA = {x['name'] for x in list...
illwill General Coding Help 7 2,766 Sep-14-2020, 10:35 PM
    Thread: Comparing items from 2 lists of dictionaries
Post: RE: Comparing items from 2 lists of dictionaries

(Sep-14-2020, 10:16 PM)bowlofred Wrote: Since they're lists, does the order matter? Or are you just looking for the collection of names in one list to the collection of names in the other? If or...
illwill General Coding Help 7 2,766 Sep-14-2020, 10:23 PM
    Thread: Comparing items from 2 lists of dictionaries
Post: RE: Comparing items from 2 lists of dictionaries

(Sep-14-2020, 09:41 PM)bowlofred Wrote: The dictionaries can have different keys, and if they have the same key they can have different values stored. It's not clear to me which sort of difference ...
illwill General Coding Help 7 2,766 Sep-14-2020, 10:09 PM
    Thread: Comparing items from 2 lists of dictionaries
Post: Comparing items from 2 lists of dictionaries

Hey all, I working with 2 json data sets, I've imported them into variables so that I now have 2 lists of dictionaries. I need to check if the items in list A exist in list B. They aren't identical ...
illwill General Coding Help 7 2,766 Sep-14-2020, 08:38 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020