Discussions Q&R
Can anyone explain
1 Vote
2 RéponsesHelp me
1 Vote
4 RéponsesReturn, plz, help
5 Votes
5 RéponsesWho can explain?
0 Vote
1 RéponseHow do i do that
0 Vote
6 RéponsesFunction output
0 Vote
5 Réponsesdef__
3 Votes
4 Réponseswhats wrong?
0 Vote
3 RéponsesPython programming
0 Vote
3 RéponsesMistake Pls Help 🥺
-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éponseshow
0 Vote
3 Réponsesdef add(x, y):
return x + y
def do_twice(func, x, y):
return func(func(x, y), func(x, y))
a = 5
b = 10
print(do_twice(add, a, b))
Please explain step by step
Which is caller here?
Explain the 3rd and 4th line ?
why in 4th line we write add(add(x,y),add(x,y)) which is function of 1st line ?
how can we write function after return statement insted of (x+y+x+y )=30?
0 Vote
2 RéponsesInvalid syntax
1 Vote
2 Réponsesfunction problem
0 Vote
1 RéponseMissing code
0 Vote
3 RéponsesBasic python difficulty
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éponsesSimple code issue
1 Vote
1 RéponseAujourd'hui en vedette
Help please?
4 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Game development
0 Votes