DATASTRUCTURE-PRACTICAL-1A

DATA STRUCTURES AND ALGORITHM PRACTICAL-1A

Implement the following for Array:

Write a program to store the elements in 1-D array and provide an option

to perform the operations like searching, sorting, merging, reversing the elements.

arr1=[12,35,42,22,1,6,54]

arr2=['hello','world']

arr1.index(35)

print(arr1)

arr1.sort()

print(arr1)

arr1.extend(arr2)

print(arr1)

arr1.reverse()

print(arr1