Q&A Discussions
Hello. Python
1 Vote
5 AnswersGenerators
1 Vote
1 AnswerHow can i retun a 2d array?
0 Votes
7 AnswersMethod returning array
0 Votes
13 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 AnswersFunction in c++
0 Votes
7 AnswersHot today
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes