Create a Python program that takes in a list and returns a new list. The program should subtract 10 from every element in the list.
list = [1,2,3,4,5]
def subtractFromList(list): 
 return [x - 10 for x in list]