def tag(key, tags):
    """Return the value of the tag with the given key from the given list"""
    if tags:
        for t in tags:
            if t['Key'] == key:
                return t['Value']
    return ''