Sum of negative number in a list
Given a list consisting of both positive and negative numbers, return the sum of the negative numbers.
Sample Code:
def numToStr(num):
# Enter your logic here...
Examples:
Input: [1,2,3,-4,-5,-6]
Output: -15
Explanation: -15 is the sum of all negative numbers in the list.
Input: [1,2,3,4,5,6]
Output: 0
Explanation: 0 represents zero negative number to be found.