10 lines
219 B
Python
10 lines
219 B
Python
|
def nestedListContains(NL, target):
|
||
|
if isinstance(NL, int):
|
||
|
if NL == target:
|
||
|
return True
|
||
|
return False
|
||
|
for i in NL:
|
||
|
if nestedListContains(i, target):
|
||
|
return True
|
||
|
return False
|