



'''simple docstring'''





from __future__ import annotations




def lowerCAmelCase    (__A    ,      __A):



     """simple docstring"""



     if len(__A) < k or k < 0:
          raise ValueError('''Invalid Input''')
     _a           =    _a           =    sum(array[:k])
     for i in range(len(__A) - k):
          _a           =    current_sum - array[i] + array[i + k]
          _a           =    max(__A    ,      __A)
     return max_sum


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

  testmod()
  lowercase_									=    [randint(-1_000, 1_000) 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 lowerCAmelCase    (__A    ,      __A):



     """simple docstring"""



     if digit_amount > 0:
          return round(number - int(__A)    ,      __A)
     return number - int(__A)


if __name__ == "__main__":
  print(decimal_isolate(1.53, 0))
  print(decimal_isolate(35.345, 1))
  print(decimal_isolate(35.345, 2))
  print(decimal_isolate(35.345, 3))
  print(decimal_isolate(-14.789, 3))
  print(decimal_isolate(0, 2))
  print(decimal_isolate(-14.123, 1))
  print(decimal_isolate(-14.123, 2))
  print(decimal_isolate(-14.123, 3))



