Hello, I'm doing the following in python:
I created an array of dictionaries and would like to search within this array if a particular word exists.
Ex:
palavra1 = {'palavra': 'sim', 'positivo': 0}
palavra2 = {'palavra': 'não', positivo: 0}
palavras = [palavra1, palavra2]
I would like to find out if the word 'yes' is within 'words'. How do I do this?
I thought of using the words.index () method, but I also need to use the dictionary get method to check the value of 'word', how would I do it?