Generate a program in Python to convert a list of integers into a single integer.
list = [1, 2, 3, 4]
def list_to_int(list_of_ints):
 number = 0
 for int in list_of_ints:
  number = number*10 + int
 return number