Q&A Discussions
Simple code issue
1 Vote
1 Answerdef 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 Votes
2 AnswersWhy doesn't this code work?
0 Votes
3 AnswersIf...elif...else
1 Vote
1 Answerexplanation plzzzz!!!
0 Votes
2 AnswersMethod in python
0 Votes
2 Answerswhats wrong with this code
0 Votes
1 AnswerHot today
Can i code here? Or just learn?
1 Votes
Why Lazy?
1 Votes
Quiz App: Step 3, Restart Button
0 Votes
Catch the ball
0 Votes
It's app not running properly?
1 Votes
Running a python code
1 Votes
Web development
0 Votes
PHP
0 Votes