Discussões Q&A
Simple code issue
1 Voto
1 Respostadef 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 Voto
2 RespostasIf...elif...else
1 Voto
1 RespostaFunctions
0 Voto
1 Respostaexplanation plzzzz!!!
0 Voto
2 RespostasMethod in python
0 Voto
2 Respostaspython
0 Voto
1 RespostaPopular hoje
I need help to solve this
0 Votes
Engineer Cloud
0 Votes
How to add comment in python?
0 Votes
Lua?
1 Votes
How do we code calculator
1 Votes