Skip to content

Instantly share code, notes, and snippets.

@moreati
Last active April 3, 2016 17:53
Show Gist options
  • Save moreati/cc2c8b48053ae83fede7e98130da80bf to your computer and use it in GitHub Desktop.
Save moreati/cc2c8b48053ae83fede7e98130da80bf to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from __future__ import print_function
import sys
if sys.version_info[0] < 3:
raise RuntimeError("This program requires Python 3.x")
# or to avoid having a traceback:
#print("This program requires Python 3.x", file=sys.stderr)
#sys.exit(1)
def main():
print("Hello World!")
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment