Computer Science, asked by ShreyaRoy1, 5 months ago

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 geetanjalisarpasahoo
0

Answer:

Sorry friend I don't know ur answer

Similar questions