In this kata the function returns an array/list like the one passed to it but with its nth element removed (with `0 <= n <= array/list.length - 1`). The function is already written for you and the basic tests pass, but random tests fail. Your task is to figure out why and fix it.

Good luck!

~~~if:javascript
Some good reading: [MDN Docs about arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
~~~
~~~if:python
Some good reading: [Python Docs about lists](https://docs.python.org/3/tutorial/datastructures.html)
~~~
~~~if:coffeescript
Some good reading: [CoffeeScript docs](http://coffeescript.org/)
~~~

Difficulty: introductory

Starter code:

def remove_nth_element(lst, n):
	

Solutions:
def remove_nth_element(a, n):
    return a[:n] + a[n+1:]

def remove_nth_element(lst, n):
    lst_copy = lst.copy()
    del lst_copy[n]
    return lst_copy

def remove_nth_element(lst, n):
    # Fix it
    import copy
    lst_copy = copy.deepcopy(lst)
    del lst_copy[n]
    return lst_copy


def remove_nth_element(lst, n):
    return lst[:n] + lst[n+1:]

def remove_nth_element(lst, n):
  lst_copy = lst[:]
  del lst_copy[n]
  return lst_copy

def remove_nth_element(lst, n):
    lst_copy = lst[:] # That's a shallow copy
    del lst_copy[n]
    return lst_copy

def remove_nth_element(lst, n):
    _lst = lst[:]
    del _lst[n]
    return _lst

def remove_nth_element(lst, n):
    # Fix it
    lst_copy = lst[:]
    del lst_copy[n]
    return lst_copy

remove_nth_element=lambda a,n:a[:n]+a[n+1:]

remove_nth_element = lambda a, n: a[:n] + a[n+1:]

def remove_nth_element(lst, n):
    return [j for i, j in enumerate(lst) if n != i]