Write a Python function splitsum(l) that takes a nonempty list of integers and returns a list [pos,neg], where pos is the sum of squares all the positive numbers in l and neg is the sum of cubes of all the negative numbers in l
>>> splitsum([-1,2,3,-7])
[13, -344]
Answers
Answered by
0
Answer:
Sorry friend I don't know ur answer
Similar questions
History,
2 months ago
Math,
2 months ago
Science,
5 months ago
Math,
11 months ago
Computer Science,
11 months ago