def find_widest_key(categories):
    """Returns width of widest key for formatting.

    """
    widest_key = 0
    for key in categories:
        if len(key) > widest_key:
            widest_key = len(key)
    return widest_key