






"""simple docstring"""

from __future__ import annotations

def 		__lowerCamelCase	(  __UpperCamelCase      ,       __UpperCamelCase       )						->    int:

		"""simple docstring"""







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


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

					testmod()
					lowercase__          = [randint(-1000, 1000) for i in range(100)]
					lowercase__          = randint(0, 110)
					print(F"""The maximum sum of {k} consecutive elements is {max_sum_in_array(array,k)}""")







"""simple docstring"""




def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    float    ,       _lowercase						:    float					) ->float:






	'''simple docstring'''






	return price * (1 + tax_rate)


if __name__ == "__main__":
		print(F'''{price_plus_tax(100, 0.25) = }''')
		print(F'''{price_plus_tax(125.50, 0.05) = }''')


