GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — blog-code-examples/aws-lambda-python-3-6/lambda.py at master · fullstackpython/blog-code-examples Expand file tree/ Copy pathlambda.pyMore file actions 14 lines (11 loc) · 471 Bytes / Copy pathlambda.pyFile metadata and controls14 lines (11 loc) · 471 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import os def lambda_handler(event, context): what_to_print = os.environ.get("what_to_print") how_many_times = int(os.environ.get("how_many_times")) # make sure what_to_print and how_many_times values exist if what_to_print and how_many_times > 0: for i in range(0, how_many_times): # formatted string literals are new in Python 3.6 print(f"what_to_print: {what_to_print}.") return what_to_print return None |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |