35+ Important Python Programs on Array

35+ Important Python Programs on Array

  1. Python Program to take input and print elements of array.
  2. Python Program to count total number of elements in array.
  3. Python Program to count total number of even and odd elements in an array.
  4. Python Program to count total number of negative elements in an array.
  5. Python Program to print all negative elements in an array.
  6. Python Program to find reverse of an array.
  7. Python Program to find reverse of an array without using temp variable.
  8. Python Program to find sum of all array elements.
  9. Python Program to print minimum and maximum element in an array.
  10. Python Program to print second largest element in an array.
  11. Python Program to copy one array to another array.
  12. Python Program to insert an element in an array at end.
  13. Python Program to insert an element in an array at first.
  14. Python Program to insert an element in an array at given location.
  15. Python Program to delete an element in an array at end.
  16. Python Program to delete an element in an array at first.
  17. Python Program to delete an element from an array at given index.
  18. Python Program to count and print frequency of each element in an array.
  19. Python Program to print all unique elements in the array.
  20. Python Program to count total number of duplicate elements in an array.
  21. Python Program to delete all duplicate elements from an array.
  22. Python Program to merge two array to third array.
  23. Python Program to sperate even and odd number of array in two separate array.
  24. Python Program to search an element in an array.
  25. Python Program to sort array elements in ascending order.
  26. Python Program to sort array elements in descending order.
  27. Python Program to perform one left rotation on array.
  28. Python Program to perform one right rotation on an array.
  29. Python Program to perform two left rotation on array.
  30. Python Program to perform two right rotation on an array.
  31. Python Program to check two array are equal in size or not.
  32. Python Program to find largest and smallest number in array.
  33. Python Program to find second highest number in an array.
  34. Python Program to find top two maximum number in array.
  35. Python Program to merge two arrays.