Q&A Discussions
Anyone please help me
1 Vote
5 AnswersCan anyone explain
1 Vote
2 AnswersReturn, plz, help
5 Votes
5 AnswersWho can explain?
0 Votes
1 AnswerHow do i do that
0 Votes
6 AnswersFunction output
0 Votes
5 Answerswhats wrong?
0 Votes
3 AnswersPython programming
0 Votes
3 AnswersMistake Pls Help 🥺
-1 Vote
2 AnswersPython Method Not Returning
4 Votes
7 Answersdef 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 Votes
7 AnswersInvalid syntax
1 Vote
2 Answersdef 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 Votes
2 Answersfunction problem
0 Votes
1 AnswerMissing code
0 Votes
3 AnswersBasic python difficulty
0 Votes
1 AnswerHot today
Can i code here? Or just learn?
2 Votes
Why Lazy?
1 Votes
Quiz App: Step 3, Restart Button
0 Votes
Catch the ball
0 Votes
Running a python code
1 Votes
Web development
0 Votes
PHP
0 Votes
How to do a responsive page?
1 Votes