print [url_string for extension in extensionsToCheck if(extension in url_string)] code example
Example: print [url_string for extension in extensionsToCheck if(extension in url_string)]
print [extension for extension in extensionsToCheck if(extension in url_string)]