This can fail too:
$ ./helloworld.py >file.txt
What if the hard drive is full? $ ./helloworld.py >file.txt
What if the hard drive is full? SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello")?