[Python] 3 lines of code, faster than 96%
Upvote if it was usefull for you \uD83D\uDE42\n\n```\nclass Solution:\n    class Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        product=1\
Upvote if it was usefull for you \uD83D\uDE42\n\n```\nclass Solution:\n    class Solution:\n    def arraySign(self, nums: List[int]) -> int:\n        product=1\n        for n in nums: product*=n\n        return 1 if product > 1 else (-1 if product < 0 else 0)
['Python']