New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What is func(func(arg)) in python functional programming
functions
0 Votes
2 Answers
25th May 2020, 11:16 AM
Bavith
def test(func, arg): return func(func(arg)) def mult(x): return x * x print(test(mult, 2))
functions
python
0 Votes
11 Answers
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)) #output:20
python
python3
0 Votes
6 Answers
13th Oct 2021, 5:55 PM
Khalif Baby👶
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 Answers
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 Answers
25th Jul 2018, 10:03 AM
Tijani Julius Best
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 Answers
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 Votes
2 Answers
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 Votes
1 Answer
21st Nov 2017, 6:02 PM
ilham
Ask a question
Ask a question
Hot today
Can someone please help me with my CSS code?
1 Votes
Help with c++ code
1 Votes
Dynamic library lib file
0 Votes
Ai and coding !!?
2 Votes
Does everyone get this for free?
3 Votes
Why is this code dumped in this compiler?
2 Votes
What will happen if we don't delete an array created by using Dynamic Memory in C++?
1 Votes
Unpacking dictionary in a function with python
0 Votes
HTML5 canvas
1 Votes
Nothing is solvable at this point for me via Windows 10 Desktop browsers.
0 Votes