Easy python solution using stack
\n# Code\n\nclass Solution:\n    def calPoints(self, operations: List[str]) -> int:\n        lst=[]\n        for i in operations:\n            if i=="C":\n     
\n# Code\n```\nclass Solution:\n    def calPoints(self, operations: List[str]) -> int:\n        lst=[]\n        for i in operations:\n            if i=="C":\n                lst.pop()\n            elif i=="D":\n                lst.append(lst[-1]*2)\n            elif i=="+":\n                sm=lst[-2]+lst[-1]\n                lst.append(sm)\n            else:\n                lst.append(int(i))\n        print(lst)\n        return sum(lst)\n```
['Stack', 'Python3']