


from PIL import Image


def      a	(							SCREAMING_SNAKE_CASE_      :		Image							,			SCREAMING_SNAKE_CASE_      :		float       ):






       """simple docstring"""





       def brightness(SCREAMING_SNAKE_CASE_      :		int       ) -> float:
              return 1_2_8 + level + (c - 1_2_8)

       if not -255.0 <= level <= 255.0:
              raise ValueError('''level must be between -255.0 (black) and 255.0 (white)'''       )
       return img.point(SCREAMING_SNAKE_CASE_       )


if __name__ == "__main__":
  # Load image
  with Image.open("image_data/lena.jpg") as img:
    # Change brightness to 100
    __UpperCAmelCase : List[Any] 			=				change_brightness(img, 100)
    brigt_img.save("image_data/lena_brightness.png", format="png")





import requests
from bsa import BeautifulSoup


def      a	(							SCREAMING_SNAKE_CASE_      :		str = "AAPL"       ):






       """simple docstring"""





       UpperCamelCase    :	Dict   	=		F"""https://in.finance.yahoo.com/quote/{symbol}?s={symbol}"""
       UpperCamelCase    :	Any   	=		BeautifulSoup(requests.get(SCREAMING_SNAKE_CASE_       ).text							,			'''html.parser'''       )
       UpperCamelCase    :	Dict   	=		'''My(6px) Pos(r) smartphone_Mt(6px)'''
       return soup.find('''div'''							,			class_=class_       ).find('''span'''       ).text


if __name__ == "__main__":
  for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
    print(f'''Current {symbol:<4} stock price is {stock_price(symbol):>8}''')

