TIL - Python quick way to generate a bunch of strings from lists

Tidy way of generating a bunch of strings

    expected = [
        f'{region}:{account}:stack/system-stack-{stack}'
        for region in ['eu-west-1', 'eu-west-2']
        for account in ['1234', '5678']
        for stack in ['TestStack1', 'TestStack2']
    ]

You'll only receive email when After Gibson publishes a new post

More fromĀ After Gibson