What is wrong with the syntax of this code? : <pre><code>with open('list.txt') as f:
    print " ".join(line.strip() for line in f)
</code></pre>

<p><a href="https://i.stack.imgur.com/aebFH.png" rel="nofollow noreferrer">Though the code seems to be correct, but facing syntax error !</a></p>
