from typing import Any


def option_selected(variable: Any, testvalue: Any) -> str:
    """
    Returns ``' selected="selected"'`` if ``variable == testvalue`` else
    ``''``; for use with HTML select options.
    """
    return ' selected="selected"' if variable == testvalue else ''