Python Forum
Looping through dictionary and comparing values with elements of a separate list.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping through dictionary and comparing values with elements of a separate list.
#5
Thanks, I like the last solution best. Didn't know about csv reader so that will be useful in the future. And I would never have looked up set(). I have to say it's much simpler than Perl.
Reply


Messages In This Thread
RE: Looping through dictionary and comparing values with elements of a separate list. - by Mr_Keystrokes - Jun-22-2018, 02:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sort a list of dictionaries by the only dictionary key Calab 2 581 Apr-29-2024, 04:38 PM
Last Post: Calab
Question Using Lists as Dictionary Values bfallert 8 382 Apr-21-2024, 06:55 AM
Last Post: Pedroski55
  unable to remove all elements from list based on a condition sg_python 3 478 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Dictionary in a list bashage 2 585 Dec-27-2023, 04:04 PM
Last Post: deanhystad
  filtering a list of dictionary as per given criteria jss 5 728 Dec-23-2023, 08:47 AM
Last Post: Gribouillis
  need to compare 2 values in a nested dictionary jss 2 893 Nov-30-2023, 03:17 PM
Last Post: Pedroski55
  Copying the order of another list with identical values gohanhango 7 1,188 Nov-29-2023, 09:17 PM
Last Post: Pedroski55
  Search Excel File with a list of values huzzug 4 1,285 Nov-03-2023, 05:35 PM
Last Post: huzzug
Question mypy unable to analyse types of tuple elements in a list comprehension tomciodev 1 507 Oct-17-2023, 09:46 AM
Last Post: tomciodev
  for loops break when I call the list I'm looping through Radical 4 923 Sep-18-2023, 07:52 AM
Last Post: buran

Forum Jump:

User Panel Messages

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