F&A Diskussionen
Can anyone explain
1 Stimme
2 AntwortenHelp me
1 Stimme
4 AntwortenReturn, plz, help
5 Stimmen
5 AntwortenWho can explain?
0 Stimmen
1 AntwortHow do i do that
0 Stimmen
6 AntwortenFunction output
0 Stimmen
5 Antwortendef__
3 Stimmen
4 Antwortenwhats wrong?
0 Stimmen
3 AntwortenPython programming
0 Stimmen
3 AntwortenMistake Pls Help 🥺
-1 Stimme
2 AntwortenPython Method Not Returning
4 Stimmen
7 Antwortendef 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 Antwortenhow
0 Stimmen
3 Antwortendef 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 Stimmen
2 AntwortenInvalid syntax
1 Stimme
2 AntwortenHelp needed with Python 3
1 Stimme
2 Antwortenfunction problem
0 Stimmen
1 AntwortMissing code
0 Stimmen
3 AntwortenButton Command in tkinter PYTHON
0 Stimmen
2 AntwortenBasic python difficulty
0 Stimmen
1 AntwortКак заполнять массив посимвольно?
0 Stimmen
4 Antwortendef 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 Stimmen
2 AntwortenSimple code issue
1 Stimme
1 AntwortHeute heiß
Pig Latin
0 Votes
Someone can help me
1 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
1 Votes
HTML community, HELP!!
1 Votes
I am a super beginner
0 Votes
What's doctype htMl
2 Votes
How this program executes?
0 Votes
Pls give me an idea
1 Votes