Sesiones de PyR
Simple code issue
1 Voto
1 Respuestadef 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 Votos
2 RespuestasIf...elif...else
1 Voto
1 RespuestaFunctions
0 Votos
1 Respuestaexplanation plzzzz!!!
0 Votos
2 RespuestasMethod in python
0 Votos
2 Respuestaspython
0 Votos
1 RespuestaEn tendencia hoy
I need help
1 Votes
My hearts are disappering :(
0 Votes
a phone or a laptop
0 Votes
Pressure and tension
2 Votes
Where is code bit
0 Votes
Java IDE for building a game.
0 Votes