

_a	 =     1_0_0_0







def _a				( SCREAMING_SNAKE_CASE	:    float	)					->					float:

 """simple docstring"""






 return x * x







def _a				( SCREAMING_SNAKE_CASE	:    Union[str, Any]					,      SCREAMING_SNAKE_CASE	:    float					,      SCREAMING_SNAKE_CASE	:    float					,      SCREAMING_SNAKE_CASE	:    int = 4	)					->					float:

 """simple docstring"""






 assert callable(
     SCREAMING_SNAKE_CASE	), f'''the function(object) passed should be callable your input : {function}'''
 assert isinstance(SCREAMING_SNAKE_CASE					,      (float, int)	), f'''a should be float or integer your input : {a}'''
 assert isinstance(function(SCREAMING_SNAKE_CASE	)					,      (float, int)	), (
     "the function should return integer or float return type of your function, "
     f'''{type(SCREAMING_SNAKE_CASE	)}'''
 )
 assert isinstance(SCREAMING_SNAKE_CASE					,      (float, int)	), f'''b should be float or integer your input : {b}'''
 assert (
     isinstance(SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE	) and precision > 0
 ), f'''precision should be positive integer your input : {precision}'''

 # just applying the formula of simpson for approximate integration written in
 # mentioned article in first comment of this file and above this function

 __lowerCAmelCase:     Any     			=   (b - a) / N_STEPS
 __lowerCAmelCase:     str     			=   function(SCREAMING_SNAKE_CASE	) + function(SCREAMING_SNAKE_CASE	)

 for i in range(1					,      SCREAMING_SNAKE_CASE	):
  __lowerCAmelCase:     List[Any]     			=   a + h * i
  result += function(SCREAMING_SNAKE_CASE	) * (4 if i % 2 else 2)

 result *= h / 3
 return round(SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE	)


if __name__ == "__main__":
  import doctest

  doctest.testmod()








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)





