def sign(num):
    """Returns the sign of num as an integer;
    if ```num < 0```, returns ```-1```, ```num = 0```, returns ```0```, ```num > 0```, returns ```1```."""
    return int(num > 0) - int(num < 0)