check if list code example
Example 1: check if list of list python
for item in list_of_lists:
isinstance(item, list)
Example 2: python type == list
if isinstance(object, list):
## DO what you want
for item in list_of_lists:
isinstance(item, list)
if isinstance(object, list):
## DO what you want