



"""simple docstring"""







from cva import destroyAllWindows, imread, imshow, waitKey


def       __SCREAMING_SNAKE_CASE      (   __UpperCAmelCase					,							__UpperCAmelCase	):
		_lowercase			,   _lowercase							:      Any			=					img.shape[0], img.shape[1]

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

		def normalize(__UpperCAmelCase	):
				return min(__UpperCAmelCase					,							255	)

		for i in range(__UpperCAmelCase	):
				for j in range(__UpperCAmelCase	):
						_lowercase							:      Any			=					int(to_grayscale(*img[i][j]	)	)
						_lowercase							:      str			=					[
						    normalize(__UpperCAmelCase	),
						    normalize(greyscale + factor	),
						    normalize(greyscale + 2 * factor	),
						]

		return img


if __name__ == "__main__":
		# read original image
		UpperCAmelCase:   List[Any]       			=							{
		    percentage: imread("""image_data/lena.jpg""", 1) for percentage in (10, 20, 30, 40)
		}

		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()








"""simple docstring"""







import requests
from bsa import BeautifulSoup


def       __SCREAMING_SNAKE_CASE      (   __UpperCAmelCase					,							__UpperCAmelCase	):
		_lowercase							:      Dict			=					(
		    """https://www.horoscope.com/us/horoscopes/general/"""
		    F"""horoscope-general-daily-{day}.aspx?sign={zodiac_sign}"""
		)
		_lowercase							:      Any			=					BeautifulSoup(requests.get(__UpperCAmelCase	).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""",
		)
		UpperCAmelCase:   Union[str, Any]       			=							int(input("""number> """).strip())
		print("""choose some day:\n""", """yesterday\n""", """today\n""", """tomorrow\n""")
		UpperCAmelCase:   List[Any]       			=							input("""enter the day> """)
		UpperCAmelCase:   List[Any]       			=							horoscope(zodiac_sign, day)
		print(horoscope_text)



