Python Solution | Faster than 95% | Easy to understand
\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        product = math.prod(nums)\n        return 1 if product > 0 else -1 if product < 0 e
```\nclass Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        product = math.prod(nums)\n        return 1 if product > 0 else -1 if product < 0 else 0  \n```
['Math', 'Python']