Q&A Discussies
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 Stemmen
2 AntwoordenWhy doesn't this code work?
0 Stemmen
3 AntwoordenIf...elif...else
1 Stem
1 AntwoordFunctions
0 Stemmen
1 Antwoordexplanation plzzzz!!!
0 Stemmen
2 AntwoordenMethod in python
0 Stemmen
2 Antwoordenpython
0 Stemmen
1 Antwoordwhats wrong with this code
0 Stemmen
1 AntwoordPopulair vandaag
Best language?
0 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Bug in Completing AI Practice
0 Votes