F&A Diskussionen
What is unittest in Python?
10 Stimmen
3 AntwortenWhat is unittest in python?
6 Stimmen
2 AntwortenWhat is unittest in Python?
3 Stimmen
1 AntwortWhat do code?
1 Stimme
4 AntwortenWat is doing deze python code
0 Stimmen
1 AntwortWhy Should the following Test Pass
0 Stimmen
1 Antwortdef 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 Stimmen
7 AntwortenКак пользоваться unittest?
0 Stimmen
1 Antwortguys 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 Stimmen
4 AntwortenHeute heiß
Someone can help me
2 Votes
What's wrong with this?
2 Votes
HTML community, HELP!!
1 Votes
X velocity
0 Votes
I am a super beginner
0 Votes
Files not linking in C++
0 Votes
Web Dev
0 Votes
How this program executes?
0 Votes