Discussions Q&R
What next?
 1 Vote
 2 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éponsesdef 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
How create a new language ?
 1 Votes
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Project
 0 Votes