- 2
Write ✍️ a program to sort an array and find the index number of the required elements
Take an example of an array containing random numbers Arr = [10, 50, 13, 70, 19, 25, 60] Find the index value of x = 25 Use any sorting algorithm and sort and find the index value of 10 i.e "x" value
2 Respostas
+ 5
Please show your attempts link with a question.
+ 1
Arr.sort() #sort the array
print(Arr.index(25)) #index of 25