if divs_sum > num:
    print('{} is abundant number'.format(num))
elif divs_sum < num:
    print('{} is deficient number'.format(num))
elif divs_sum == num:
    pass
Python abundant, deficient, or perfect number