F&A Diskussionen
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 Stimmen
2 AntwortenHeute heiß
What's wrong in my code?
4 Votes
App Development
1 Votes
HTML
1 Votes
GUI-Based Python code in Webpage
2 Votes
Introduction of html
0 Votes
CSS or Tailwind
1 Votes
Web Developer Job?
1 Votes