Powershell Lambda Expressions Python