

from cva import destroyAllWindows, imread, imshow, waitKey







def _a				( SCREAMING_SNAKE_CASE	:    Optional[int]					,      SCREAMING_SNAKE_CASE	:    int	)					->					Optional[int]:

 """simple docstring"""






 __lowerCAmelCase			,							__lowerCAmelCase:     Optional[Any]     			=   img.shape[0], img.shape[1]

 def to_grayscale(SCREAMING_SNAKE_CASE	:    int					,      SCREAMING_SNAKE_CASE	:    Tuple					,      SCREAMING_SNAKE_CASE	:    Tuple	):
  return 0.2_1_2_6 * red + 0.5_8_7 * green + 0.1_1_4 * blue

 def normalize(SCREAMING_SNAKE_CASE	:    Optional[Any]	):
  return min(SCREAMING_SNAKE_CASE					,      2_55	)

 for i in range(SCREAMING_SNAKE_CASE	):
  for j in range(SCREAMING_SNAKE_CASE	):
   __lowerCAmelCase:     Any     			=   int(to_grayscale(*img[i][j]	)	)
   __lowerCAmelCase:     List[Any]     			=   [
       normalize(SCREAMING_SNAKE_CASE	),
       normalize(greyscale + factor	),
       normalize(greyscale + 2 * factor	),
   ]

 return img


if __name__ == "__main__":
  # read original image
  _a	 =     {
      percentage: imread('''image_data/lena.jpg''', 1) for percentage in (1_0, 2_0, 3_0, 4_0)
  }

  for percentage, img in images.items():
    make_sepia(img, percentage)

  for percentage, img in images.items():
    imshow(f"Original image with sepia (factor: {percentage})", img)

  waitKey(0)
  destroyAllWindows()








import requests
from bsa import BeautifulSoup







def _a				( SCREAMING_SNAKE_CASE	:    int					,      SCREAMING_SNAKE_CASE	:    str	)					->					str:

 """simple docstring"""






 __lowerCAmelCase:     Tuple     			=   (
     'https://www.horoscope.com/us/horoscopes/general/'
     f'''horoscope-general-daily-{day}.aspx?sign={zodiac_sign}'''
 )
 __lowerCAmelCase:     Optional[Any]     			=   BeautifulSoup(requests.get(SCREAMING_SNAKE_CASE	).content					,      'html.parser'	)
 return soup.find('div'					,      class_='main-horoscope'	).p.text


if __name__ == "__main__":
  print('''Daily Horoscope. \n''')
  print(
      '''enter your Zodiac sign number:\n''',
      '''1. Aries\n''',
      '''2. Taurus\n''',
      '''3. Gemini\n''',
      '''4. Cancer\n''',
      '''5. Leo\n''',
      '''6. Virgo\n''',
      '''7. Libra\n''',
      '''8. Scorpio\n''',
      '''9. Sagittarius\n''',
      '''10. Capricorn\n''',
      '''11. Aquarius\n''',
      '''12. Pisces\n''',
  )
  _a	 =     int(input('''number> ''').strip())
  print('''choose some day:\n''', '''yesterday\n''', '''today\n''', '''tomorrow\n''')
  _a	 =     input('''enter the day> ''')
  _a	 =     horoscope(zodiac_sign, day)
  print(horoscope_text)





