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éponsesIf...elif...else
1 Vote
1 Réponseexplanation plzzzz!!!
0 Vote
2 RéponsesMethod in python
0 Vote
2 RéponsesAujourd'hui en vedette
I've a HTML code question
0 Votes
@sololearn Python
1 Votes
C++
0 Votes
Appointment Booking website
0 Votes
Activate account
0 Votes
Give me advice
1 Votes