#Deleting kth index of an Array
def remove(a,x):
    newlist = []
    for k in range(len(a)):
        if k != x:
            newlost.append(a[k])
            print(*newlist)

n = int(input("Enter number of elements in an array :")
       a=[]
print("Enter the elements")
     for i in range(0,n):
    value = int(input())
        a.append(value)

 x = int(input("Element at index to be deleted :")
     remove(a,x)
