I can't figure out why I can't print to the terminal using the following code.
#!/usr/bin/env python3
import sys
def main():
sys.stdout.write("Hello")
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
./filename
The terminal prints nothing, just goes to newline. How do I print to the terminal if not with sys.stdout.write("string")?