• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu

Q&A Discussies

What is func(func(arg)) in python functional programming
functions
0 Stemmen
2 Antwoorden
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))
functionspython
0 Stemmen
11 Antwoorden
9th May 2017, 4:52 AM
AJITH KUMAR
AJITH KUMAR - avatar
def apply_twice(func,arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five,10)) #output:20
pythonpython3
0 Stemmen
6 Antwoorden
13th Oct 2021, 5:55 PM
Khalif Baby👶
Khalif Baby👶 - avatar
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Stem
6 Antwoorden
22nd Jul 2018, 3:14 PM
ADITYA SINHA
ADITYA SINHA - avatar
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functions
1 Stem
4 Antwoorden
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 Stem
2 Antwoorden
18th Jun 2019, 12:55 PM
Ranjeet singh jitty
Ranjeet singh jitty - avatar
def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))
functionspython3
0 Stemmen
2 Antwoorden
2nd Aug 2019, 7:24 AM
SUNDARAMAN IYER
SUNDARAMAN IYER - avatar
python
5add_five(x):apply_twice(funcarg):deffunc(func(arg))funcdefreturnx
0 Stemmen
1 Antwoord
21st Nov 2017, 6:02 PM
ilham
ilham - avatar
Populair vandaag
Python stressed me out
1 Votes
How often can you become a fully stuck developer?
1 Votes
Improve accessibility of this page
0 Votes
Course Doubt
1 Votes
If we already have the DELETE command in SQL, why do we need TRUNCATE?
2 Votes
Data analysis
0 Votes
What is a simple and easy way to learn ruby? :)
0 Votes
Saved code
0 Votes
How do i make a lexer and parser
1 Votes
Help
0 Votes