Skip to main content

A package for writing multiple lines in a lambda function.

Project description

Multiline lambda Function

Multiline lambda function in python. Give arguments to lambdafunction() and include multiple lines in a single lambda function.

Syntax :

General Syntax : lambdaFunction.lambdafunction("list of string arguments", caller="string argument which gets calls the function.")
  • First list of arguements should be wrapped in single function.
  • eg. lambdaFunction.lambdafunction("def add(x, y) :","...", caller="...")
  • All the syntax should be same as python. Use "\t" for indentation
  • Function should have some return method.
  • eg. lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="...")
  • Then pass the function name to caller. (Here, "add")
  • eg. lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="add(3, 6)") returns -> 18
    when, print(lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="add(3, 6)")) prints -> 18.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multiLineLambda-0.0.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

multiLineLambda-0.0.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page