Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
[code coach]: pig latin
3 Votes
3 Réponsesdef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
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.
please the unittest is still telling me that my code failed the "only lists" allowed test.what do I do.
0 Vote
7 RéponsesAndroid studio error
0 Vote
1 Réponseguys this code I wrote passed all the unittest specifications in an oop lab. but they told me that I failed a hidden test. that my code can still be improved upon. I've tried my best but I don't know how to improve the code again. please give me ideas. am I using WET in any block. any unnecessary repetitions or redundancy? this is the code below:
http://www.sololearn.com/app/python/playground/cG5UEvIEkuHd/
0 Vote
4 RéponsesAujourd'hui en vedette
Access deny problem
2 Votes
3 consecutive words
0 Votes
BOTSS
0 Votes
c++ help
0 Votes
A small question
0 Votes
Help
0 Votes
How to use ai ?
0 Votes
What's wrong with my code?
0 Votes