from numpy import *
def isDiv3(x):
    for i in range(len(numberArray)):
        if numberArray[i] % 3 == 0:
            ele = numberArray[i]
            listElements.append(ele)
        else:
            pass
    print("From list numbers which are divisble by 3 are:",listElements)
global numberArray
numberArray = array([1,2,3,4,5,6,7,8,9,12])
listElements = []
#numberArray = [int(item) for item in input("Enter the list items : ").split()]
print("Numbers in array", numberArray)
isDiv3(numberArray)
print("sum of numbers div by 3:", int(sum(listElements)))







