


import pprint

import requests

SCREAMING_SNAKE_CASE__					:     List[Any]       =     'https://zenquotes.io/api'




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




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


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









from PIL import Image




def    a__    (		snake_case__					:							Image						,   snake_case__					:							int     ):
  _UpperCAmelCase		:							Optional[Any]							=     (259 * (level + 255)) / (255 * (259 - level))

  def contrast(snake_case__					:							int     ) -> int:
    return int(128 + factor * (c - 128)     )

  return img.point(snake_case__     )


if __name__ == "__main__":
 # Load image
 with Image.open('image_data/lena.jpg') as img:
  # Change contrast to 170
  SCREAMING_SNAKE_CASE__					:     int       =     change_contrast(img, 170)
  cont_img.save('image_data/lena_high_contrast.png', format='png')





