I am aware, I'm sure: which is a closure. Alternatively Python could possibly provide a search term to power definition-time binding:
fingers-on Finding out: chance to work on a variety of use cases and assignments at https://jasonxumw344215.59bloggers.com/30260727/python-training-btm-an-overview