Python3 ✅ REALLY easy solution ✅ Begginer friendly ✅
\n\n\n# Code\n\nclass Solution:\n    def calPoints(self, operations: List[str]) -> int:\n        record = []\n        for i in operations:\n            if i.isd
\n\n\n# Code\n```\nclass Solution:\n    def calPoints(self, operations: List[str]) -> int:\n        record = []\n        for i in operations:\n            if i.isdigit() or (i.startswith(\'-\') and i[1:].isdigit()):\n                record.append(int(i))\n            elif i == "C":\n                if record:\n                    record.pop()\n            elif i == "D":\n                if record:\n                    record.append(record[-1]*2)\n            elif i == "+":\n                if len(record) >= 2:\n                    record.append(record[-1] + record[-2])        \n        return sum(record)\n```\n\n\n![photo_2024-05-26_20-46-38.jpg](https://assets.leetcode.com/users/images/723c423d-7b8a-46a0-947e-a02390f83b5a_1716765866.9757788.jpeg)\n
['Python3']