Python3 Solution - few line
\ndef subtractProductAndSum(self, n: int) -> int:\n    digit_list = list(map(int,str(n)))\n    digit_product = 1\n    for i in digit_list:\n        digit_produc
```\ndef subtractProductAndSum(self, n: int) -> int:\n    digit_list = list(map(int,str(n)))\n    digit_product = 1\n    for i in digit_list:\n        digit_product *= i\n    return digit_product - sum(digit_list)\n```
[]