



'''simple docstring'''





import pprint

import requests

_lowerCAmelCase										=     '''https://zenquotes.io/api'''
def        _SCREAMING_SNAKE_CASE  (	):



    """simple docstring"""





    return requests.get(API_ENDPOINT_URL + """/today"""      ).json()
def        _SCREAMING_SNAKE_CASE  (	):



    """simple docstring"""





    return requests.get(API_ENDPOINT_URL + """/random"""      ).json()


if __name__ == "__main__":
 _lowerCAmelCase										=     random_quotes()
 pprint.pprint(response)







'''simple docstring'''





from PIL import Image
def        _SCREAMING_SNAKE_CASE  (	UpperCamelCase      ):



    """simple docstring"""





    lowerCAmelCase__				,       lowerCAmelCase__			:  Dict											= image.size
    lowerCAmelCase__			:  int											= 0
    lowerCAmelCase__			:  int											= image.load()
    for i in range(UpperCamelCase      ):
        for j in range(UpperCamelCase      ):
            lowerCAmelCase__			:  int											= pixels[j, i]
            mean += pixel
    mean //= width * height

    for j in range(UpperCamelCase      ):
        for i in range(UpperCamelCase      ):
            lowerCAmelCase__			:  Dict											= 255 if pixels[i, j] > mean else 0
    return image


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


