• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu

Sesiones de PyR

in nested 'if' . why dos 'if' statement is execute the first answer, even there is some right answer in below. why is work in first come first serve, if I wanted to get more answer in an 'if' state ment is it possible in python
if-statementspython
0 Votos
2 Respuestas
13th Nov 2016, 7:42 PM
Arun karthick
Arun karthick - avatar
def 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?
python
0 Votos
2 Respuestas
29th Jul 2016, 7:22 PM
Rupam Das
Rupam Das - avatar
< Anterior1...3435Siguiente >
En tendencia hoy
Moving image
3 Votes
Possible to create own code challenge?
4 Votes
Do u think I can build games from the knowledge I gain in here?
0 Votes
Do you agree with me ???
0 Votes
Check it out
1 Votes
Why does it not show the picture,
0 Votes
Want to confirm
0 Votes
Adding audio and videos
1 Votes
Help make cool game
0 Votes
Combination
1 Votes