New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Program is exiting
0 Votes
4 Answersdef 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
Is the AI course worth the $49?
0 Votes
Comparing code coach solutions
2 Votes
Where to use
0 Votes
Coding path
0 Votes
How to win bits
1 Votes