Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 3, 2020 12:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BMU-Verlag/8bef634ee562d742976ef8307ced19f7 to your computer and use it in GitHub Desktop.
def vervielfachen(n):
return lambda a : a * n
verdoppeln = vervielfachen(2)
verdreifachen = vervielfachen(3)
print("Verdoppeln:", verdoppeln(5))
print("Verdreifachen:", verdreifachen(5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment