




def       lowerCAmelCase_      (	lowerCamelCase:							Any  ,					lowerCamelCase:							str    )       ->      int:


      '''simple docstring'''




      for index, item in enumerate(lowerCamelCase__    ):
            if item == target:
                  return index
      return -1

def       lowerCAmelCase_      (	lowerCamelCase:							Tuple  ,					lowerCamelCase:							Optional[int]  ,					lowerCamelCase:							Union[str, Any]  ,					lowerCamelCase:							List[Any]    )       ->      int:


      '''simple docstring'''




      if not (0 <= high < len(lowerCamelCase__    ) and 0 <= low < len(lowerCamelCase__    )):
            raise Exception('Invalid upper or lower bound!'    )
      if high < low:
            return -1
      if sequence[low] == target:
            return low
      if sequence[high] == target:
            return high
      return rec_linear_search(lowerCamelCase__  ,					low + 1  ,					high - 1  ,					lowerCamelCase__    )


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

      __SCREAMING_SNAKE_CASE     : Tuple      =int(input("""Enter a single number to be found in the list:\n""").strip())
      __SCREAMING_SNAKE_CASE     : Optional[int]      =linear_search(sequence, target)
      if result != -1:
            print(F"""linear_search({sequence}, {target}) = {result}""")
      else:
            print(F"""{target} was not found in {sequence}""")
def 					__lowercase						(    lowerCamelCase__       )					->int:

  '''simple docstring'''




  if not isinstance(lowerCamelCase__			,					lowerCamelCase__       ):
    raise ValueError("double_factorial() only accepts integral values"       )
  if n < 0:
    raise ValueError("double_factorial() not defined for negative values"       )
  return 1 if n <= 1 else n * double_factorial(n - 2       )


if __name__ == "__main__":
     import doctest

     doctest.testmod()

