



"""simple docstring"""
from scipy.constants import g





def 				lowerCamelCase_		(UpperCamelCase__	:	float  , UpperCamelCase__	:	float							):
    if mass < 0:
        # handling of negative values of mass
        raise ValueError('''The mass of a body cannot be negative'''							)
    if height < 0:
        # handling of negative values of height
        raise ValueError('''The height above the ground cannot be negative'''							)
    return mass * g * height


if __name__ == "__main__":
  from doctest import testmod

  testmod(name='potential_energy')







"""simple docstring"""
def 				lowerCamelCase_		(UpperCamelCase__	:	List[Any]  , UpperCamelCase__	:	int							):
    sequence.append(UpperCamelCase__							)

    _UpperCAmelCase							:						str       							=					0
    while sequence[index] != target:
        index += 1

    sequence.pop()

    if index == len(UpperCamelCase__							):
        return None

    return index


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

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


