Tag Archives: COPYING

COPYING ELEMENTS FROM ONE ARRAY INTO ANOTHER ARRAY – Developers Feed

COPYING ELEMENTS FROM ONE ARRAY INTO ANOTHER ARRAY arr1=[]l=int(input(“enter the length of the list :”))print(“enter list elements”)for i in range(0,l):n=int(input(” “))arr1.append(n) arr2 = [None] * len(arr1); for i in range(0, len(arr1)): arr2[i] = arr1[i]; print(“Elements of original array: “); for i in range(0, len(arr1)): print(arr1[i]), print(); print(“Elements of new array: “); for i in range(0,…

Read More