Q&A Discussies
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 Stemmen
2 AntwoordenPopulair vandaag
Python stressed me out
1 Votes
Course Doubt
1 Votes
Data analysis
0 Votes
Lesson Takeaways
0 Votes
Saved code
0 Votes
Help
0 Votes