Q&A Discussions
How can I get better !?!
3 Votes
2 Answersdef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
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.
please the unittest is still telling me that my code failed the "only lists" allowed test.what do I do.
0 Votes
7 AnswersHot today
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
How to make a 2d game
0 Votes
Not image in the page
0 Votes