


def       lowercase_		(		_A			:    int    ,					_A			:    int						):

      """simple docstring"""




      if not isinstance(_A    ,					_A						):
            raise ValueError("iterations must be defined as integers"						)
      if not isinstance(_A    ,					_A						) or not number >= 1:
            raise ValueError(
                "starting number must be\n                         and integer and be more than 0"						)
      if not iterations >= 1:
            raise ValueError("Iterations must be done more than 0 times to play FizzBuzz"						)

      lowerCamelCase__		:				List[str]    =  ""
      while number <= iterations:
            if number % 3 == 0:
                  out += "Fizz"
            if number % 5 == 0:
                  out += "Buzz"
            if 0 not in (number % 3, number % 5):
                  out += str(_A						)

            # print(out)
            number += 1
            out += " "
      return out


if __name__ == "__main__":
    import doctest

    doctest.testmod()






from PIL import Image

def       lowercase_		(		_A			:    Image						):

      """simple docstring"""




      lowerCamelCase__    ,   lowerCamelCase__		:				List[str]    =  image.size
      lowerCamelCase__		:				Dict    =  0
      lowerCamelCase__		:				Dict    =  image.load()
      for i in range(_A						):
            for j in range(_A						):
                  lowerCamelCase__		:				List[str]    =  pixels[j, i]
                  mean += pixel
      mean //= width * height

      for j in range(_A						):
            for i in range(_A						):
                  lowerCamelCase__		:				Union[str, Any]    =  255 if pixels[i, j] > mean else 0
      return image


if __name__ == "__main__":
    A      :    int		=					mean_threshold(Image.open("path_to_image").convert("L"))
    image.save("output_image_path")


