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







def 		__a  (      _SCREAMING_SNAKE_CASE						,	_SCREAMING_SNAKE_CASE  )      ->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'''




import sys



def  __lowerCamelCase    (   _lowercase      ,							_lowercase						) ->     int:
							if not numbers:
														return 0
							if target == 0 and target in numbers:
														return 0
							if not isinstance(_lowercase      ,							(list, tuple)						) or not all(
							    isinstance(_lowercase      ,							_lowercase						) for number in numbers						):
														raise ValueError("""numbers must be an iterable of integers"""						)

							UpperCAmelCase	:						Optional[Any]					=						0
							UpperCAmelCase	:						List[str]					=						sys.maxsize

							while right < len(_lowercase						):
														curr_sum += numbers[right]
														while curr_sum >= target and left <= right:
																					UpperCAmelCase	:						Optional[Any]					=						min(_lowercase      ,							right - left + 1						)
																					curr_sum -= numbers[left]
																					left += 1
														right += 1

							return 0 if min_len == sys.maxsize else min_len

