Write a Python program that sorts a list of integers from smallest to largest.
[2,7,3,9,0,4]
def sort_list(input_list):
    sorted_list = sorted(input_list)
    return sorted_list

input_list = [2,7,3,9,0,4]

output = sort_list(input_list)
print(output)