

"""simple docstring"""

from scipy.constants import g



def 			SCREAMING_SNAKE_CASE       (   lowercase__				,				lowercase__      ) ->	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"""

from itertools import product



def 			SCREAMING_SNAKE_CASE       (   lowercase__ = 1_5      ) ->	int:
 lowerCAmelCase__      :							float    =							0.0
 lowerCAmelCase__      :							float
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							int
 lowerCAmelCase__      :							tuple[int, ...]

 for series in product(range(2      )				,				repeat=lowercase__      ):
  lowerCAmelCase__      :							Optional[int]    =							series.count(1      )
  lowerCAmelCase__      :							Dict    =							num_turns - num_blue
  if num_red >= num_blue:
   continue
  lowerCAmelCase__      :							Dict    =							1.0
  for ind, col in enumerate(lowercase__				,				2      ):
   if col == 0:
    prob *= (ind - 1) / ind
   else:
    prob *= 1 / ind

  total_prob += prob

 return int(1 / total_prob      )


if __name__ == "__main__":
    print(f"{solution() = }")






