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:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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) |