code: def percentage(part, whole, resolution=2):
      
      if whole == 0:
          raise ZeroDivisionError
  
      percent = 100 * float(part)/float(whole)
      
      return round(percent, resolution) if resolution >=1 else int(percent)
docs: Calculates the percentage of a number, given a part and a whole
      ie: 10 is what percent of 25 --> 40%
  
      Args:
          part (float): The part of a number
          whole (float): The whole of a number
          resolution (int): Number of decimal places (Default is 2)
  
      Returns:
          float: The percentage of a number
          or
          int: The percentage of a number (if resolution is zero or a negative number)
  
      Example:
      >>> percentage(10, 25)
      40.0
      >>> percentage(5, 19, 3)
      26.316