Q&A Discussões
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 Voto
2 RespostasIf...elif...else
1 Voto
1 RespostaFunctions
0 Voto
1 Respostaexplanation plzzzz!!!
0 Voto
2 RespostasMethod in python
0 Voto
2 Respostaspython
0 Voto
1 RespostaQuente hoje
Best language?
0 Votes
you con help mi
1 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes