Lambda Function With For Loop In Python Using Visual Studio