





_snake_case  :   str						   =  9.8_06_65

def   a_   (			lowerCAmelCase_				:      float,     lowerCAmelCase_				:      float,     lowerCAmelCase_				:      float = g     ):

   if fluid_density <= 0:
      raise ValueError('Impossible fluid density'     )
   if volume < 0:
      raise ValueError('Impossible Object volume'     )
   if gravity <= 0:
      raise ValueError('Impossible Gravity'     )

   return fluid_density * gravity * volume


if __name__ == "__main__":
     import doctest

     # run doctest
     doctest.testmod()








from functools import lru_cache

@lru_cache
def   a_   (			lowerCAmelCase_				:      int     ):
   if num < 0:
      raise ValueError('Number should not be negative.'     )

   return 1 if num in (0, 1) else num * factorial(num - 1     )


if __name__ == "__main__":
     import doctest

     doctest.testmod()

