def calculate_correct(guess, slip, learned):
    """
    Determines how likely the learner will respond to a card well.
    """

    return learned * (slip - 1) + (1 - learned) * guess
dataset/ETHPy150Open heiskr/sagefy/server/modules/sequencer/formulas.py/calculate_correct/swapped operands of `-`