• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

python

How this code works please ? def apply_twice(func, arg): return func(func(arg)) def add_five(x): return x + 5 print(apply_twice(add_five, 10))

returndef5xadd_five(x):apply_twice(funcarg):func(func(arg))funcdef
21st Nov 2017, 6:02 PM
ilham
ilham - avatar
1 Antwort

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Ai generated practices
2 Votes
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
1 Votes
Solving coding challenges
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
Changing String Variables into int in C++
0 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
Fill in the blank to declare a static variable.
0 Votes
How can i insert files?
1 Votes