In previous code, I tried the below and it worked but it's not working now. Can anyone see the problem?
with tf.Session() as session():
    session.run(init)
But now I am getting this error. From looking at other posts, it seems to be because other people are using brackets when they should be using parenthesis. But I'm not using brackets and I can't see what is wrong.
    with tf.Session() as session():
        ^
SyntaxError: can't assign to function call
 
     
     
    