def step(x0: float, x1: float, p: float):
    """
        Interplates step=wise between two values such that when p<0.5
        the interpolated value is x0 and otherwise it's x1
    """
    return x0 if p < 0.5 else x1