Chris, Python can have a list of objects, i e. Those objects can be functions , so instead of a list of commands that are compared by if/elif , you can simply add the function object to the list , then later pop it off the list and call it (the list can include tuples of function and parameters) . Ill try to dig out some examples for you.
Chris, Python can have a list of objects, i e. Those objects can be functions , so instead of a list of commands that are compared by if/elif , you can simply add the function object to the list , then later pop it off the list and call it (the list can include tuples of function and parameters) . Ill try to dig out some examples for you.
👍
Good morning tubeDude48!
Appreciate the thumbs up.
Cheers
Chris