Solution
\n# Code\n\nclass Solution:\n    def countPairs(self, nums: List[int], target: int) -> int:\n        cnt = 0\n        for i in range(len(nums)):\n            fo
\n# Code\n```\nclass Solution:\n    def countPairs(self, nums: List[int], target: int) -> int:\n        cnt = 0\n        for i in range(len(nums)):\n            for j in range(i+1,len(nums)):\n                if nums[i] + nums[j] < target:\n                    cnt+=1\n        return cnt\n\n```
['Python3']