Why can't I print to terminal with my python script?
<p>I can't figure out why I can't print to the terminal using the following code. </p>

<pre><code>#!/usr/bin/env python3
import sys
def main():
    sys.stdout.write("Hello")
</code></pre>

<p>I'm running the program from the terminal by moving into the directory in which the python file is found, making the file executable and running </p>

<pre><code>./filename
</code></pre>

<p>The terminal prints nothing, just goes to newline. How do I print to the terminal if not with sys.stdout.write("string")? </p>