Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isInDeepList(needle, haystack):
- for i, string in enumerate(haystack):
- if isinstance(haystack[i], list):
- if isInDeepList(needle, haystack[i]):
- return True
- if needle in string:
- return True
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement