# Hello Example # Print "Hello, World." to output file greeting.txt. # Solution 1, Redirect output to file: py hello.py > greeting.py print("Hello, World.") # Solution 2 fout = open("greeting.txt", "w") fout.write("Hello, World.\n") fout.close( )