Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
def test(func, arg): return func(func(arg)) def mult(x): return x * x print(test(mult, 2))
functions
python
0 Vote
11 Réponses
9th May 2017, 4:52 AM
AJITH KUMAR
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Vote
6 Réponses
22nd Jul 2018, 3:14 PM
ADITYA SINHA
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Vote
4 Réponses
25th Jul 2018, 10:03 AM
Tijani Julius
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Vote
2 Réponses
18th Jun 2019, 12:55 PM
Ranjeet singh jitty
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
python3
0 Vote
2 Réponses
2nd Aug 2019, 7:24 AM
SUNDARAMAN IYER
python
5
add_five(x):
apply_twice(func
arg):
def
func(func(arg))
funcdef
return
x
0 Vote
1 Réponse
21st Nov 2017, 6:02 PM
ilham
Poser une question
Poser une question
Poser une question
Poser une question
Aujourd'hui en vedette
How to allow one instance of exe
2 Votes
Reverse observer pattern : remove dynamic_cast
2 Votes
Python
1 Votes
Theater management help me
2 Votes
What has happened?
1 Votes
What should I add/improve ?
1 Votes
Remove raw pointer from observer design pattern
0 Votes
Should You Specialize or Diversify in Programming?
1 Votes
python beginner needing help
0 Votes
I'm not getting all test cases passed in the Average Word Length problem (in code coach). I'm dropping my code here.
1 Votes