Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
Code saving location
0 Vote
1 Réponsedef 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 Vote
2 RéponsesAujourd'hui en vedette
Help pls/ python
1 Votes
How to remember what you learned
1 Votes
Find saved code
1 Votes
I want a little help.
0 Votes
What is the output of this code?
0 Votes
Usage of Carriage Return (`\r')
2 Votes