1 line Python with explanation.
\nreturn Counter(map(sum, pairwise(nums))).most_common(1)[0][1] >= 2\n\n\n- itertools.pairwise(nums) returns all subarrays with length 2. pairwise(\'ABCDEFG\') 
```\nreturn Counter(map(sum, pairwise(nums))).most_common(1)[0][1] >= 2\n```\n\n- `itertools.pairwise(nums)` returns all subarrays with length 2. `pairwise(\'ABCDEFG\') --> AB BC CD DE EF FG`\n- Use `map(sum, pairwise(nums))` to sum all the subarrays.\n- Use `Counter.most_common()` to find if there are subarrays with same `sum()`.\n\nI\'m growing the list of [1liner Python](https://github.com/dangsonbk/1linePython) code, hope you like it.
[]