Discussioni Q&A
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 Voti
2 RisposteIf...elif...else
1 Voto
1 RispostaFunctions
0 Voti
1 Rispostaexplanation plzzzz!!!
0 Voti
2 RisposteMethod in python
0 Voti
2 Rispostepython
0 Voti
1 RispostaPopolare oggi
Ошибка в приложении Sololearn
1 Votes
NEO V2.0
1 Votes
Hello guys,
1 Votes
Sololearn course
1 Votes
Payment by account
0 Votes