2125. Number of Laser Beams in a Bank
EASY TO UNDERSTAND || BEGINNER FRIENDLY\n\n        arr=[]\n        \n        for i in range(len(bank)):\n            count=0\n            for j in range(len(ban
**EASY TO UNDERSTAND || BEGINNER FRIENDLY**\n```\n        arr=[]\n        \n        for i in range(len(bank)):\n            count=0\n            for j in range(len(bank[i])):\n                if bank[i][j]==\'1\':\n                    count+=1\n            arr.append(count)\n\n        ans=[]\n        \n        for ii in range(len(arr)):\n            if arr[ii]!=0:\n                ans.append(arr[ii])\n        \n        anss=0\n        \n        for x in range(len(ans)-1):\n            anss+=ans[x]*ans[x+1]\n        return anss\n        \n```
['Python', 'Python3']