check if a list contains a type python code example
Example 1: check if list of list python
for item in list_of_lists:
isinstance(item, list)
Example 2: python check if list contains
# To check if a certain element is contained in a list use 'in'
bikes = ['trek', 'redline', 'giant']
'trek' in bikes
# Output:
# True