code: def element_data_from_Z(Z):
      '''Obtain elemental data given a Z number
  
      An exception is thrown if the Z number is not found
      '''
  
      # Z may be a str
      if isinstance(Z, str) and Z.isdecimal():
          Z = int(Z)
  
      if Z not in _element_Z_map:
          raise KeyError('No element data for Z = {}'.format(Z))
      return _element_Z_map[Zf element_data_from_Z(Z):
      '''Obtain elemental data given a Z number
  
      An exception is thrown if the Z number is not found
      '''
  
      # Z may be a str
      if isinstance(Z, str) and Z.isdecimal():
          Z = int(Z)
  
      if Z not in _element_Z_map:
          raise KeyError('No element data for Z = {}'.format(Z))
      return _element_Z_map[Z]
docs: Obtain elemental data given a Z number
  
      An exception is thrown if the Z number is not found