parameters: (name, spec='css3')
return_statement: return rgb_to_rgb_percent(name_to_rgb(name, spec=spec))
docstring: Convert a color name to a 3-tuple of percentages suitable for use
      in an ``rgb()`` triplet specifying that color.
  
      The optional keyword argument ``spec`` determines which
      specification's list of color names will be used; valid values are
      ``html4``, ``css2``, ``css21`` and ``css3``, and the default is
      ``css3``.
  
      The color name will be normalized to lower-case before being
      looked up, and when no color of that name exists in the given
      specification, ``ValueError`` is raised.
  
      Examples:
  
      >>> name_to_rgb_percent('white')
      ('100%', '100%', '100%')
      >>> name_to_rgb_percent('navy')
      ('0%', '0%', '50%')
      >>> name_to_rgb_percent('goldenrod')
      ('85.49%', '64.71%', '12.5%')
docstring_summary: Convert a color name to a 3-tuple of percentages suitable for use
      in an ``rgb()`` triplet specifying that color.
docstring_tokens: Convert a color name to a 3 - tuple of percentages suitable for use in an rgb () triplet specifying that color .
function: def name_to_rgb_percent(name, spec='css3'):
      """
      Convert a color name to a 3-tuple of percentages suitable for use
      in an ``rgb()`` triplet specifying that color.
  
      The optional keyword argument ``spec`` determines which
      specification's list of color names will be used; valid values are
      ``html4``, ``css2``, ``css21`` and ``css3``, and the default is
      ``css3``.
  
      The color name will be normalized to lower-case before being
      looked up, and when no color of that name exists in the given
      specification, ``ValueError`` is raised.
  
      Examples:
  
      >>> name_to_rgb_percent('white')
      ('100%', '100%', '100%')
      >>> name_to_rgb_percent('navy')
      ('0%', '0%', '50%')
      >>> name_to_rgb_percent('goldenrod')
      ('85.49%', '64.71%', '12.5%')
  
      """
      return rgb_to_rgb_percent(name_to_rgb(name, spec=spec))
function_tokens: def name_to_rgb_percent ( name , spec = 'css3' ) : return rgb_to_rgb_percent ( name_to_rgb ( name , spec = spec ) )