Write a Python program to print all the numbers from the given list which are divisible by 7.
[7, 14, 21, 28, 35, 42, 49]
def divisible_by_seven(number_list):
    for i in number_list:
        if i % 7 == 0:
            print(i)