Можно проверить в Python, есть ли элемент в элементах словаря, как показано ниже:
Код: Выделить всё
for x in rows:
print(x.items())
for item in seq.items():
print(item)
if item in x.items():
print("got it")
Seq: {'AGATC': 4, 'AATG': 1, 'TATC': 5}
I know that I can check if value exist but i want check i whole item exist. It will be easier way to do this.
Источник: https://stackoverflow.com/questions/781 ... nary-items