def inurl(needles, haystack, position='<STR_LIT>'):
count = <NUM_LIT:0><EOL>haystack2 = haystack.lower()<EOL>for needle in needles:<EOL><INDENT>needle2 = needle.lower()<EOL>if position == '<STR_LIT>':<EOL><INDENT>if haystack2.find(needle2) > -<NUM_LIT:1>:<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>elif position == '<STR_LIT:end>':<EOL><INDENT>if haystack2.endswith(needle2):<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>elif position == '<STR_LIT>':<EOL><INDENT>if haystack2.startswith(needle2):<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>if count > <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
convenience function to make string.find return bool