If you’re looking for a place to start, W3Schools has a Python tutorial that’s pretty straightforward. It breaks things down ...
LAMBDA defines the custom logic, and SCAN moves that logic through your data range.