How will you execute a Python script in Unix?

To execute a Python script in Unix, we need to have Python executor in Unix environment.

In addition to that we have to add following line as the first line in a Python script file.


This will tell Unix to use Python interpreter to execute the script.

Read the full book at
Posted in Python, Python Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *