Sesiones de PyR
Why does this not work?
2 Votos
2 RespuestasGuys please help me with these (assignment) :
-create a function "manipulate_data" that does the following;
1.accepts as the first parameter astring specifying the data structure to be used e. g a list.
2.accepts as the second parameter the data to be manipulated based on the data structure specified e.g [1,4,9,16,25] for alist data structure.
0 Votos
7 RespuestasVar vs function.
-1 Voto
1 Respuestadef 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 RespuestasEn tendencia hoy
C Programming roadmap
2 Votes
[off-topic]Where is Result??
1 Votes
Messages
1 Votes
Cpp
1 Votes
Adding two numbers
1 Votes