import tensorflow as tf
a = tf.constant(120, name="a")
b = tf.constant(130, name="b")
c = tf.constant(140, name="c")
v = tf.Variable(0, name="v" )

calc_op = a + b + c
assign_op = tf.assign(v, calc_op)

session = tf.Session()
session.run(assign_op)

o = session.run(v)
print(o)

import tensorflow as tf
a = tf.constant(120, name="a")
b = tf.constant(130, name="b")
c = tf.constant(140, name="c")
v = tf.Variable(0, name="v" )

calc_op = a + b + c
assign_op = tf.assign(v, calc_op)

session = tf.Session()
session.run(assign_op)

o = session.run(v)
print(o)
