import inspect


def get_function_param_names(func):
    """Get the positional and keyword parameter names of a function."""
    return [
        param.name
        for param in inspect.signature(func).parameters.values()
        if param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD
    ]