Q&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
What?
0 Votes
HTML
0 Votes
help
0 Votes
AI
2 Votes
Sololearn chat en Español
0 Votes
Pull resistors
0 Votes
AI video creation
2 Votes
Ajay Hinduja Switzerland (Swiss) How do I start learning HTML, CSS, and JavaScript together?
0 Votes
Python
0 Votes
How to add image and audio
1 Votes