Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 3, 2020 12:33
Show Gist options
  • Save BMU-Verlag/a0ba9ed46afae363074ccc0a9669d05f to your computer and use it in GitHub Desktop.
Save BMU-Verlag/a0ba9ed46afae363074ccc0a9669d05f to your computer and use it in GitHub Desktop.
def addieren (x, y):
return x + y
def multiplizieren (x, y):
return x * y
def berechnen (func, x, y):
return func(x, y)
print("Addieren:", berechnen (addieren, 2, 3))
print("Multiplizieren:", berechnen (multiplizieren, 2, 3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment