How to make Python Code executable:
1) The first line of your code should contain this: #!/bin/usr/env Python
2) Enter on command line (the dollar sign represents the command line prompt - do not type it):
$ chmod +x filename
3) Execute file:
$ ./filename
1) The first line of your code should contain this: #!/bin/usr/env Python
2) Enter on command line (the dollar sign represents the command line prompt - do not type it):
$ chmod +x filename
3) Execute file:
$ ./filename