human
Write a python function to reverse an array upto a given position. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def reverse_Array_Upto_K(input, k): 
  return (input[k-1::-1] + input[k:])