edit
I have 2 list of dictionaries and I am trying to compare the value of a key in the dictionaries list_1 to see if it that value exists in the value of a different key in the dictionaries list_2 as I iterate through list_2.
Lists of Dictionaries
list_1: {'Video ID': 12894, 'Title': 'Title 1'...}, {'Video ID': 128993, 'Title': 'Title 3'...}, {...}
list_2: ('post_id': 12894, 'title': 'Title 2'...,} {'post_id': 128993, 'title': 'Title 5'...,}, {...}
I would like to see if value of key Video ID in the dictionaries of list_1 match the value of the key post_id in the dictionaries of list_2.
I am trying the code below from a post here, but I am getting confused on using the keys to access the correct value.
Code
for s in dictionary_2:
s = list(s.values())
for f in dictionary_1:
f = list(f.values())
if f['Video Id'] in s and f['post_id'] in s:
print(s)