Q&A Discussions
Code saving location
0 Votes
1 Answerdef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
raise ValueError
return
else:
for i in n:
if i>=0:
positives.append(i)
if i<0
negatives.append(i)
new=[len(positives,sum(negatives)]
return new.
Someone kindly assist I keep running it in unitests and I keep getting errors.
Here's the question:
0 Votes
2 AnswersHot today
Audio adding
1 Votes
C#
0 Votes
What is problem in this code
0 Votes
playground input
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
Software developer
0 Votes