Design a program in Python to delete an element from the give list.
List: [1,2,3,4,5]
Element to delete: 3
def delete_element(arr, element): 
    new_arr = [i for i in arr if i!=element]
    return new_arr