Mar-29-2025, 07:30 PM
hello and i have a question about python
are you able to add a function as a parameter and still run it?
here's what it would look like:
are you able to add a function as a parameter and still run it?
here's what it would look like:
def function_load(function):
function() # parameter
def add(x, y):
return x + y
print(function_load(add(x, y)))
# or...
# this in tkinter
# func
window.after(0, forever)
