#!/usr/bin/python3
def divisible_by_2(my_list=[]):
    results = []
    for x in my_list:
        if x % 2 == 0:
            results.append(True)
        else:
            results.append(False)
    return results

if __name__ == '__main__':
    my_list = [0, 1, 2, 3, 4, 5, 6]
    list_result = divisible_by_2(my_list)

    i = 0
    while i < len(list_result):
        print("{:d} {:s} divisible by 2"
              .format(my_list[i], "is" if list_result[i] else "is not"))
        i += 1
