python check if its a list code example
Example 1: check if list of list python
for item in list_of_lists:
isinstance(item, list)
Example 2: check if anything in a list is in a string python
y = any(x in String for x in List)
for item in list_of_lists:
isinstance(item, list)
y = any(x in String for x in List)