Edit the following Python program to remove the redundant lines.
def foo(list):        
    list.append(1)         
    list.append(2)
    list.append(3)       
    list.append(1)
    list.append(2)
    return list

list = [1, 2, 3]
def foo(list):        
    list.append(1)         
    list.append(2)
    list.append(3)
    return list

list = [1, 2, 3]