
'''simple docstring'''




from __future__ import annotations







def 		lowerCAmelCase_				(   snake_case__		,				snake_case__						):




    '''simple docstring'''



    if len(snake_case__						) < k or k < 0:
        raise ValueError('''Invalid Input'''						)
    A       :   Any					=						sum(array[:k]						)
    for i in range(len(snake_case__						) - k						):
        A       :   Union[str, Any]					=						current_sum - array[i] + array[i + k]
        A       :   List[Any]					=						max(snake_case__		,				snake_case__						)
    return max_sum


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

      testmod()
      lowercase			:				int    		=			[randint(-10_00, 10_00) for i in range(1_00)]
      lowercase			:				List[str]    		=			randint(0, 1_10)
      print(f'''The maximum sum of {k} consecutive elements is {max_sum_in_array(array,k)}''')





'''simple docstring'''




__SCREAMING_SNAKE_CASE       :     Dict     =  8.3_1_4_4_6_2  # Unit - J mol-1 K-1

def 	UpperCamelCase_							(					_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float    )    ->    float:


       """simple docstring"""







       if moles < 0 or kelvin < 0 or volume < 0:
              raise ValueError("Invalid inputs. Enter positive value."    )
       return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume

def 	UpperCamelCase_							(					_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float			,	_UpperCAmelCase  :      float    )    ->    float:


       """simple docstring"""







       if moles < 0 or kelvin < 0 or pressure < 0:
              raise ValueError("Invalid inputs. Enter positive value."    )
       return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


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

  testmod()

