If we have the following list:
list = [\'UMM\', \'Uma\', [\'Ulaster\',\'Ulter\']]
If I need to find out if an element in the list is itself
you can simply write:
for item,i in zip(your_list, range(len(your_list)): if type(item) == list: print(f"{item} at index {i} is a list")