First of all, complete python/programming newbie here, so I apologise if this is a stupid question. Also, sorry for the awkward title.
I'm attempting to adapt the top answer in this question: Check if a Python list item contains a string inside another string. However, I'm not sure if what I'm trying to achieve is even possible.
list6 = [list1,list2,list3,list4,list5]
'list6' is a list containing several other lists. Then, this line can be used to check if 'Cool' is a string inside of any of those lists:
if any("Cool" in s for s in list6):
My question is: Assuming 'Cool' is only in 'list1', is it possible to fetch and store 'list1' in order to use other values within that list? For example:
if "Cool" is in any list in list6:
list = list with "Cool"
something = list[4]