my code as follows:
a_list = ['apple', 'orange', 'banana', 'this is a dog']
print('apple' in a_list)
-->>True
print('dog' in item for item in a_list)
-->><generator object <genexpr> at 0x000001E870D13F90>
Question: Why do I get the <generator object at 0x000001E870D13F90>?
How can I check, if 'dog' is in any item of this list, and the position of this item, i.e., 'dog' is in the a_list[3]?
Thanks!