






'''simple docstring'''
import math
from timeit import timeit




def 						__SCREAMING_SNAKE_CASE   (					_UpperCamelCase							):


   """simple docstring"""




   lowercase_		:      Dict          =       0
   lowercase_		:      Tuple          =       abs(_UpperCamelCase							)
   while True:
      lowercase_		:      Any          =       n // 10
      digits += 1
      if n == 0:
         break
   return digits




def 						__SCREAMING_SNAKE_CASE   (					_UpperCamelCase							):


   """simple docstring"""




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




def 						__SCREAMING_SNAKE_CASE   (					_UpperCamelCase							):


   """simple docstring"""




   return len(str(abs(_UpperCamelCase							)							)							)




def 						__SCREAMING_SNAKE_CASE   (					):


   """simple docstring"""




   from collections.abc import Callable

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

   for value in (26_2144, 1125_8999_0684_2624, 126_7650_6002_2822_9401_4967_0320_5376):
      for func in (num_digits, num_digits_fast, num_digits_faster):
         benchmark_a_function(_UpperCamelCase  ,						_UpperCamelCase							)
      print()


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 benchmark()












'''simple docstring'''
def 						__SCREAMING_SNAKE_CASE   (					_UpperCamelCase  ,						_UpperCamelCase							):


   """simple docstring"""




   sequence.append(_UpperCamelCase							)

   lowercase_		:      Union[str, Any]          =       0
   while sequence[index] != target:
      index += 1

   sequence.pop()

   if index == len(_UpperCamelCase							):
      return None

   return index


if __name__ == "__main__":
 UpperCamelCase__	=     input('Enter numbers separated by comma:\n').strip()
 UpperCamelCase__	=     [int(item) for item in user_input.split(',')]

 UpperCamelCase__	=     input('Enter a single number to be found in the list:\n')
 UpperCamelCase__	=     int(target_input)
 UpperCamelCase__	=     sentinel_linear_search(sequence, target)
 if result is not None:
  print(f"""{target} found at positions: {result}""")
 else:
  print('Not found')




