def calculate_streak(streak, operation):
    """
    Params:
        streak: current user's streak
        operation: 1 if bet hits, -1 if bet doesn't hit

    If streak is positive and bet hits it will increment streak
    If streak is negative and bet hits it will assign it 1
    If streak is positive and bet misses it will assign it -1
    If streak is negative and bet misses it will decrement streak
    """
    return operation if (streak * operation) < 0 else (streak + operation)