check if there is a list or string python code example
Example 1: python check array param
isinstance([0, 10, 20, 30], list) # True
isinstance(50, list) # False
Example 2: if list item in string python
if any(ext in url_string for ext in extensionsToCheck):
print(url_string)