📌 Python3 simple one liner
\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        \n        def signFun(x):\n            return 1 if x > 0 else -1 if x < 0 else 0\n 
```\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        \n        def signFun(x):\n            return 1 if x > 0 else -1 if x < 0 else 0\n        \n        return signFun(math.prod(nums))\n```
['Python', 'Python3']