Discussions Q&R
def 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 Vote
2 RéponsesAujourd'hui en vedette
how does this code function?
2 Votes
.
1 Votes
What?
0 Votes
.
0 Votes
HTML
0 Votes
i need to learn Coding
0 Votes
Quiz duel
0 Votes
Web
0 Votes
FRC Coding?
1 Votes