Styrow.dev
Question 28 of 45
Python Topic: General medium

Explain how can you make a Python Script executable on Unix?

Question

Explain how can you make a Python Script executable on Unix?

Answer

To make a Python Script executable on Unix, you need to do two things, Script file’s mode must be executable and the first line must begin with # ( #!/usr/local/bin/python)