[Python3] 1-line
Python3\npy\n    def largestAltitude(self, A):\n        return max([0] + list(accumulate(A)))\n\nSuggested by @nikamir\npy\n    def largestAltitude(self, A):\n 
**Python3**\n```py\n    def largestAltitude(self, A):\n        return max([0] + list(accumulate(A)))\n```\nSuggested by @nikamir\n```py\n    def largestAltitude(self, A):\n        return max(0, max(accumulate(A)))\n```
[]