Intern — Middle
Implement a function to delete an element from an array by index
livecode
Task condition
Create a function that takes two parameters: an array of data and the index of the element to be removed from the array.
The function should return an array without the specified element.
Example call:
def delete_item(arr, idx):
# your code
pass