Q&A Discussies
Simple code issue
1 Stem
1 Antwoorddef 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
Debugging issue?
0 Votes
Text editor
0 Votes
how to view only application
0 Votes
I’m really confused
0 Votes
Stream
1 Votes
What is Typecasting?
1 Votes
Subscription
0 Votes
Scraping
0 Votes
Make a app
0 Votes