from typing import Callable


def createPoly(a: float, b: float, c: float, d: float) -> "Callable":
    """Returns a function representing a polynomial that can be evaluated for an x."""
    return lambda x: a * x ** 3 + b * x ** 2 + c * x + d