Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 3, 2020 12:37
Show Gist options
  • Save BMU-Verlag/8bef634ee562d742976ef8307ced19f7 to your computer and use it in GitHub Desktop.
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