

'''simple docstring'''






import math
from timeit import timeit


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     int   )							->       Any:
      """simple docstring"""

      SCREAMING_SNAKE_CASE_				:      Any					=	0
      SCREAMING_SNAKE_CASE_				:      List[str]					=	abs(lowercase_   )
      while True:
            SCREAMING_SNAKE_CASE_				:      Union[str, Any]					=	n // 1_0
            digits += 1
            if n == 0:
                  break
      return digits


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     List[str]   )							->       str:
      """simple docstring"""

      return 1 if n == 0 else math.floor(math.log(abs(lowercase_   )  ,  1_0   ) + 1   )


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     Dict   )							->       Optional[Any]:
      """simple docstring"""

      return len(str(abs(lowercase_   )   )   )


def  __lowerCamelCase      (				)							->       int:
      """simple docstring"""

      from collections.abc import Callable

      def benchmark_a_function(SCREAMING_SNAKE_CASE_					:     int  ,  SCREAMING_SNAKE_CASE_					:     str   ) -> None:
            SCREAMING_SNAKE_CASE_				:      Tuple					=	F"{func.__name__}({value})"
            SCREAMING_SNAKE_CASE_				:      Optional[Any]					=	timeit(F"__main__.{call}"  ,  setup="import __main__"   )
            print(F"{call}: {func(lowercase_   )} -- {timing} seconds"   )

      for value in (2_6_2_1_4_4, 1_1_2_5_8_9_9_9_0_6_8_4_2_6_2_4, 1_2_6_7_6_5_0_6_0_0_2_2_8_2_2_9_4_0_1_4_9_6_7_0_3_2_0_5_3_7_6):
            for func in (num_digits, num_digits_fast, num_digits_faster):
                  benchmark_a_function(lowercase_  ,  lowercase_   )
            print()


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      benchmark()




'''simple docstring'''






import requests
from bsa import BeautifulSoup


def  __lowerCamelCase      (				SCREAMING_SNAKE_CASE_					:     int  ,  SCREAMING_SNAKE_CASE_					:     str   )							->       str:
      """simple docstring"""

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

