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 RespuestasInvalid syntax
1 Voto
2 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 Respuestasfunction problem
0 Votos
1 RespuestaMissing code
0 Votos
3 RespuestasBasic python difficulty
0 Votos
1 RespuestaSimple code issue
1 Voto
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 RespuestasEn tendencia hoy
Question
2 Votes
Wayss
0 Votes
fully dynamic arrays
1 Votes
I dont now that how to do js
2 Votes
overloading operators << >>
1 Votes
Project subjection
0 Votes
Wishkit alternative for android
1 Votes
How to start in web dev?
0 Votes