<reponame>stenvala/aws-cdk-samples<filename>g2-python-step-functions/src/final/final.py
from random import random

def handler(event, context):
    
    laps = len(event['msg']) - 1

    return {   
        'finalResult': {
            'msg': event['msg'] + [f'Finally succeeded after {laps} tries.'],            
            'randoms': event['value']
        },        
    }

from random import random

def handler(event, context):
    
    laps = len(event['msg']) - 1

    return {   
        'finalResult': {
            'msg': event['msg'] + [f'Finally succeeded after {laps} tries.'],            
            'randoms': event['value']
        },        
    }