


"""simple docstring"""




UpperCAmelCase_				:			Optional[Any]   =	{
    'joule': 1.0,
    'kilojoule': 1000,
    'megajoule': 100_0000,
    'gigajoule': 10_0000_0000,
    'wattsecond': 1.0,
    'watthour': 3600,
    'kilowatthour': 360_0000,
    'newtonmeter': 1.0,
    'calorie_nutr': 4_1_8_6.8,
    'kilocalorie_nutr': 418_6800.00,
    'electronvolt': 1.602176634e-19,
    'britishthermalunit_it': 1_0_5_5.0_5_5_8_5,
    'footpound': 1.3_5_5_8_1_8,
}







def 	SCREAMING_SNAKE_CASE_						(      __A			:      List[Any]  ,   __A			:      List[Any]  ,   __A			:      Optional[int]    )     ->		float:

       """simple docstring"""

       if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
              a_ :		List[Any]							=  (
                  F"""Incorrect 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"""
                  F"""Valid values are: {", ".join(__lowerCAmelCase    )}"""
              )
              raise ValueError(__lowerCAmelCase    )
       return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
   import doctest

   doctest.testmod()






def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		bool:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       if len(__A    ) == 1:
              return True
       a_ :		Tuple							=  series[1] - series[0]
       for index in range(len(__A    ) - 1    ):
              if series[index + 1] - series[index] != common_diff:
                     return False
       return True







def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		float:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       a_ :		str							=  0
       for val in series:
              answer += val
       return answer / len(__A    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


