In [21]:
import tensorflow as tf

A=tf.constant([3.])
B=tf.constant([14.])

C=[]
C.append(A)
C.append(B)
C.append(A)

d=tf.reduce_mean(C)

with tf.Session() as sess:
    print sess.run(d)


6.66667

In [15]:
import numpy as np

A=np.array([0.1])
B=np.array([1.1])

C=[]
C.append(A)
C.append(B)

print C


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-15-0d53e0e91969> in <module>()
      8 C.append(B)
      9 
---> 10 A.append(B[0])
     11 print C
     12 

AttributeError: 'numpy.ndarray' object has no attribute 'append'

In [ ]: