title: Sum of elements of subarrays is equal to a target value in Python
body: <p>I am given with an array <code>arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]</code> and a target value <code>trgt = 10</code>. I need to find all possible combinations of <code>subarrays</code> such that sum of the elements of each subarray will result in the given target value <code>trgt</code>. I need to use Python to acomplish the task. I have found a similar discussion in <a href="https://stackoverflow.com/questions/23087820/python-subset-sum">here</a>. However the given solution there only returns only one possible subarray instead of other valid subarrays. Any help pointing to obtaining all such subarrays will be very helpful. Thank you in advance.</p>