how to check if an item is a list python 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)