Sesiones de PyR
Can anyone explain
1 Voto
2 RespuestasHelp me
1 Voto
4 RespuestasReturn, plz, help
5 Votos
5 RespuestasWho can explain?
0 Votos
1 RespuestaHow do i do that
0 Votos
6 RespuestasFunction output
0 Votos
5 Respuestasdef__
3 Votos
4 Respuestaswhats wrong?
0 Votos
3 Respuestaspython
0 Votos
1 RespuestaPython programming
0 Votos
3 RespuestasMistake Pls Help 🥺
-1 Voto
2 Respuestasdef 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 Votos
7 Respuestashow
0 Votos
3 Respuestasdef 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 Votos
2 RespuestasInvalid syntax
1 Voto
2 Respuestasfunction problem
0 Votos
1 RespuestaMissing code
0 Votos
3 RespuestasBasic python difficulty
0 Votos
1 Respuestadef 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 Votos
2 RespuestasSimple code issue
1 Voto
1 RespuestaEn tendencia hoy
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
1 Votes