NEED A PERFECT PAPER? PLACE YOUR FIRST ORDER AND SAVE 15% USING COUPON:

Check/ improve simple Python Code

[ad_1]

Creating function for AWS API Gateway endpoint:

import json
import random

def lambda_handler(event, context):
    # TODO implement
    Cheeses = [“fromage”, “”, “formaggio”, “ost”]
   
    which_one = range(0, len(Cheeses), 1)
    return {
        ‘statusCode’: 200,
        ‘body’: json.dumps(Cheeses[which_one]), “headers”: {},
“isbase64Encoded”; “false” }

[ad_2]

Source link

Looking for this or a Similar Assignment? Click below to Place your Order