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éponsesInvalid syntax
1 Vote
2 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éponsesfunction problem
0 Vote
1 RéponseMissing code
0 Vote
3 RéponsesBasic python difficulty
0 Vote
1 RéponseSimple code issue
1 Vote
1 RéponseAujourd'hui en vedette
I've a HTML code question
0 Votes
C++
0 Votes
Appointment Booking website
0 Votes
Please tell me about methods
1 Votes
Give me advice
1 Votes
HELP ME LEARN
0 Votes