import re


def remove_comments_from_code(code: str) -> str:
    """Removes comments and strings from code.
    
    :param code: input string to process
    :returns: The code without comments and strings.
    """
    code = re.sub(r"(#+)(.*)\n", "\n", code)  # single line comments
    code = re.sub(r"\"\"\"[\s\S]*?\"\"\"", "", code)  # multiline comments/strings

    # multiline comments/strings with apostrophe quotes
    code = re.sub(r'\'\'\'[\s\S]*?\'\'\'', "", code)

    # strings with single quotation marks
    code = re.sub(r"\"[\s\S]*?\"", "", code)

    # strings with single quotation marks with apostrophe quotes
    code = re.sub(r'\'[\s\S]*?\'', "", code)

    return code