If we have the following list:
list = ['UMM', 'Uma', ['Ulaster','Ulter']]
If I need to find out if the item in the list is the list itself, what can I replace aValidList in the following code with?
for e in list: if e == aValidList: return True
Is there any special import to use? Is there a better way to check if a variable / element is a list?
python
rishimaharaj Mar 18 2018-12-18T00: 00Z
source share