Dyskusje Q&A
Program is exiting
0 głosów
4 odpowiedzidef 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 głosów
2 odpowiedziPopularne dzisiaj
What is dynamic memory
0 Votes
Where is my landing page?
0 Votes
Create website
0 Votes
Guys I'm a newcomer
1 Votes
What can I do
0 Votes
Why?
0 Votes
How can I learn codes
0 Votes